Consider R as the red ball, W as the white ball
A as the bag A and B as the bag B
Assume selecting bags is of equal probability = 1/2
Here we should determine
P (A/W) – the selected white ball is from bag A
Substituting the values
= 1/5
Hence, the probability of selected white ball is from bag A is 1/5.