Concept:Use the law of total probability to combine the two possible transfer events from bag B to bag A.
Explanation:The ball transferred from bag B can be white or black.
Case 1: A white ball is transferred.
Probability of picking white from bag B =
106.
After transfer, bag A contains 10 white and 8 black balls (total 18).
Probability of drawing white from bag A =
1810.
Case 2: A black ball is transferred.
Probability of picking black from bag B =
104.
After transfer, bag A contains 9 white and 9 black balls (total 18).
Probability of drawing white from bag A =
189.
Using total probability:
P(white from A)=106×1810+104×189.
=18060+18036=18096=158.
Given
P=qp with
gcd(p,q)=1, so
p=8,
q=15.
Thus
p+q=8+15=23.
Answer:23 (Option C).