Let the events are defined as :
E1 : 2 red balls are transferred from bag I to bag ll
E2 : 2 black balls are transferred
E3 : 1 red and 1 black ball is transferred
A : 1 red ball is drawn from bag II
By Bayes' Theorem, the required probability is given by :