The law of total probability

Splitting on cases that cover everything without overlapping, $P(B) = \sum_i P(B \mid A_i)\,P(A_i)$, an average of the conditional chances weighted by how common each case is.

From Probability.