Let E1,E2,E3 and A be events such that
E1 = Both transferred ball from Bag I to bag II are red.
E2 = Both transferred ball from Bag I to bag II are black.
E3 = Out of two transferred ball one is red and other is black.
A = drawing a red ball from Bag II.
Here, P(E2A) is required.
Now, P(E1)=3C27C2=3!2!1!×2!×5!7!=17
P(E2)=4C27C2=4!2!2!×2!×5!7!=27
P(E3)=3C1×4C17C2=3!×4!7!×2!×5!1!=47
P(AE1)=611,P(AE2)=411,P(AE3)=511
Therefore, P(E2A)=P(E2).P(AE2)P(E1).(AE1)+P(E2).(AE2)+P(E3).(AE3)
aftersolving
=877677+877+2077=877×7734=417
Therefore, the probability that the transferred balls were both black = 417