(a) No. of ways=15C3×3!×312
No. of ways to select three balls→15C3
Placing the three balls such that one in each box →3!
Placing in other boxes→312
(b) Ways of collecting balls from the boxes: (3R,1B,1G)1, (1R,3B,1G)2, (1R,1B,3G)3, (2R,2B,1G)4, (2R,1B,2G)5, (1R,2B,2G)6
No. of ways=5C3×5C1×5C1×3(1,2,3)+5C2×5C2×5C1(4,5,6)
=750+1500=2250.