Mathematical Formula:

Law of Total Probability

\mathbb{P}(C) = \sum_{x=1}^k \mathbb{P}(B_i) \cdot \mathbb{P}(C|G_x)