Analyzing the Setup
Imagine you are standing in a room with two bags, Bag A and Bag B. Bag A holds 9 white balls and 8 black balls, totaling 17 balls. Bag B holds 6 white balls and 4 black balls, totaling 10 balls.
You are tasked with a simple experiment: pick one ball from Bag B, drop it into Bag A, and then draw a ball from Bag A. We must determine the probability that the ball drawn from Bag A is white.
The Two Universes
Because we do not know which ball was transferred, we must consider two mutually exclusive scenarios, or "universes." Let E1 be the event that a white ball is transferred, and E2 be the event that a black ball is transferred.
The probability of picking a white ball from Bag B is:
P(E1)=106=53
Conversely, the probability of picking a black ball from Bag B is:
P(E2)=104=52
The Transformation of Bag A
Bag A originally contained 17 balls. After the transfer, it contains 18 balls.
If we are in Universe
1 (a white ball was added), Bag A now contains
10 white balls and
8 black balls. The conditional probability of drawing a white ball is:
P(W∣E1)=1810=95
If we are in Universe
2 (a black ball was added), Bag A now contains
9 white balls and
9 black balls. The conditional probability of drawing a white ball is:
P(W∣E2)=189=21
The Synthesis
Law of Total Probability
To find the final probability
P(W), we use the Law of Total Probability, which calculates the weighted sum of these outcomes:
P(W)=P(E1)⋅P(W∣E1)+P(E2)⋅P(W∣E2)
Substituting our values into the equation:
P(W)=(53⋅95)+(52⋅21)
Simplifying the terms, we find:
P(W)=31+51
Finding a common denominator of
15, we obtain:
P(W)=155+3=158
Final Calculation
We are given that the probability is qp where gcd(p,q)=1. Our result is 158.
Since
8 and
15 are co-prime, we identify
p=8 and
q=15. The final sum is:
p+q=8+15=23