According to the question:
Bag
has
B,
W balls and Bag
has
B,
W balls.
Let
= The event that bag
is selected
= The event that bag
is selected
And, E = The event that a black ball is selected
Now, the probabilities are:
Therefore, the required probability is
.