Bayes' theorem

$$P(A|B) = \frac{P(B|A) * P(A)}{P(B)}$$