You have 20 olives. Five of them have a pit in the middle and 15 of them do not have a pit in the middle. Person B swallows five of the olives whole. Then person A takes one of the remaining olives. If the olive person A selected has a pit, what is the probability that Person B has at least one pit in his stomach?
This is what I've tried:
Let $A=\{Person\ A\ selected\ olive\ with\ a\ pit\}$ and $B=\{Person\ B\ has\ at\ least\ one\ pit\ in\ his\ stomach\}$. We are looking for $P(B|A)=\frac{P(A\cap B)}{P(A)}$.
I know that $P(A)=\frac{5}{20}$ because the order in which they choose the olives doesn't matter, and there are $5$ olives with pit out of $20$. Then I write: $$ B=\bigcup_{i=1}^{5}\{Person\ B\ has\ exactly\ i\ pits\ in\ his\ stomach\} := \bigcup_{i=1}^{5}B_i $$
Then $$ A\cap B=A\cap (\bigcup_{i=1}^{5}B_i) = \bigcup_{i=1}^{5}(A\cap B_i) $$
Then from the additivity of $P$, we get: $$ P(A\cap B)=\sum_{i=1}^{5}P(A\cap B_i) $$
Now I'm having a problem finding $P(A\cap B_i)$. I've tried to look at $P(B_i)P(A|B)$ but it didn't promote me much.
Note that this problem should be possible to solve without combinatorial knowledge.
It is for sure that person B did not swallow the olive that was swallowed by person A.
This leaves $19$ equiprobable candidates for being swallowed by person B.
Among these candidates are exactly $15$ that contain no pit.
Person B swallows $5$ of these candidates so the probability that afterwards he has no pit in his stomach is:$$P(B^c|A)=\frac{\binom{15}5}{\binom{19}5}$$ Then the probability that person B has at least one pit in his stomach equals:$$P(B|A)=1-\frac{\binom{15}5}{\binom{19}5}$$
Using this approach you don't need to find $P(A\cap B_i)$ but if you still want that then you can make use of this approach.
Note that for $i=1,2,3,4$ we have:$$P(B_i|A)=\frac{\binom{4}{i}\binom{15}{5-i}}{\binom{19}5}$$ Further it is evident that $P(B_5|A)=0$.
Then: $$P(A\cap B_i)=P(A)P(B_i|A)=\frac14P(B_i|A)$$