$$P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}$$ Proof: expand the [[Conditional probability]].