E1 = Event that bag I is selected
E2 = Event that bag II is selected
E = Event that the ball drawn is of white colour.
So, P = (E1) = 1/2,
P = (E2) = 1/2
Also, P (E/E1) = P (ball drawn is white when bag I is selected) = 3/9
P (E/E2) = P (ball drawn is white when bag II is selected) = 6/9
By total propability theorem
Required propability = P (E) · P (E1) + P (E2) · P (E/E2)