Probability that ball is drawn from bag A =P(E1)=16
Probability that ball is drawn from bag B =P(E2)=26=13
Probability that ball is drawn from bag C =P(E3)=36=12
let P(A) be the probability of drawing a red ball
Probability that it is drawn from bag A P(A|E1)=35
Probability that it is drawn from bag B =P(A|E2)=37
Probability that its is drawn from bag C =P(A|E3)=49
Now we have to find P(E2|A) that is it is drawn from bag B
Using Baye's theorem
P(E2|A)=P(E2)P(A|E2)P(E1)P(A|E1)+P(E2)P(A|E2)+P(E3)P(A|E3)P(E2|A)=13×3716×35+13×37+12×49P(E2|A)=17110+17+29=17293630=90293