2. It is known that the first bag contains 2 white balls, 3 red balls, and 5 yellow balls, and the second bag contains 2 white balls, 4 red balls, and 4 yellow balls. If one ball is drawn from each bag, the probability that the balls drawn are of different colors is $\qquad$ .
Let $A=$ "drawing one ball from each of the two pockets, the colors of the balls drawn are different", then
$$
P(\bar{A})=\frac{C_{2}^{1} \cdot C_{2}^{1}+C_{3}^{1} \cdot C_{4}^{1}+C_{5}^{1} \cdot C_{4}^{1}}{C_{10}^{1} \cdot C_{10}^{1}}=\frac{36}{100}=\frac{9}{25} \Rightarrow P(A)=\frac{16}{25} .
$$