Let E1 and E2 be the events of selecting first bag and second bag respectively.
∴P(E1)=P(E2)=12
Let A be the event of getting a red ball.
⇒P(A|E1)=P(drawing a red ball from first bag)=48=12
⇒P(A|E2)=P(drawing a red ball from second bag)=28=14
The probability of drawing a ball from the first bag, given that it is red, is given by P(E2|A).
By using Baye's theorem, we obtain
P(E1|A)=P(E1)⋅P(A|E1)P(E1)⋅P(A|E1)+P(E2)⋅P(A|E2)
=12⋅1212⋅12+12⋅14
=1414+18
=438
=23=0.66