Let E1 be the event that bag A is chosen,
E2 be the event that bag B is chosen and A be the event that white ball is drawn.
Note that E1 and E2 are mutually exclusive and exhaustive events.
Since one of the bag is chosen at random, so
\(P(E_1) = \frac {1}{2},P(E_2 ) = \frac {1}{2}\)
P(A|E1) = probability of drawing a white ball from bag
A = 5/8
P(A|E2) = probability of drawing a white ball from bag
B = 4/11
By using law of total probability, we get
P(A) = P(E1) P(A|E1) + P(E2) P(A|E2)
