The basic idea behind the law of total probability is that if you have a family of disjoint events $\{A_i\}_{i=1}^n$ that cover the entire sample space, then for any event $B$ we have
$$P(B)=P(B|A_i)P(A_i)+\cdots+ P(B|A_n)P(A_n) $$
or, if you don't like conditional probabilities
$$P(B)=P(B \cap A_1)+ \cdots + P(B \cap A_n). $$
For instance, suppose a drawer contains one 4-sided, two 6-sided and one 8-sided dice. An unknown die is chosen at random, and you are told that it rolled a 3. What are the odds the die is 6-sided?
Here's a natural partition of the sample space of possible dice
$$D_4=\text{'die is 4-sided'} \\ D_6=\text{'die is 6-sided'} \\ D_8=\text{'die is 8-sided'}$$
Let's define the additional event
$$R_3=\text{'die rolled a 3'} $$
we are asked to find
$$P(D_6|R_3).$$
It's typical to use Bayes' theorem in this case:
$$P(D_6|R_3)=\frac{P(R_3|D_6) P(D_6)}{P(R_3)}.$$
One easily sees that
$$P(R_3|D_6)=\frac{1}{6},\;P(D_6)=\frac{1}{2}$$
in order to find the denominator, we use the law of total probability:
$$
\begin{align}
P(R_3)&=P(R_3|D_4)P(D_4)+P(R_3|D_6)P(D_6)+P(R_3|D_8)P(D_8) \\ &=\frac{1}{4} \cdot \frac{1}{4}+\frac{1}{6} \cdot \frac{1}{2}+\frac{1}{8} \cdot \frac{1}{4}=\frac{17}{96}.
\end{align}$$
All in all, we find
$$ P(D_6|R_3)=\frac{8}{17},$$
which is smaller then the prior probability $P(D_6)=\frac{1}{2}$.
Remark: It is common to use the law of total probability in order the evaluate the denominator in Bayes' theorem.