Here,W1 = {5 white balls} and B1= {5 black balls}
And W2 = {8 white balls} and B2= {6 black balls}
Let,
E1 is event that the ball transferred from the first bag is white and
E2is the event that the ball transferred from the bag is black.
Also,E is the event that the ball drawn from the second bag is white.
P(E | E1) =P(ball drawn from the second bag is white given that ball transferred from the first bag is white)= 915
P(E | E2) =P(ball drawn from the second bag is white given that ball transferred from the first bag is black)= 815
So, P(E) = P(E | E1)×P(E1)+P(E | E2)×P(E2)
P(E) = 915×12+815×12 = 1730