Q. A box has 18 balls, 6 white balls numbered 1 to 6,6 black balls numbered 1 to 6 and 6 red balls numbered 1 to 6 . We have to divide all 18 balls into 6 groups (groups are not numbered) such that each group consists of one white, one black and one red ball and difference of numbers on any two balls of same group is at most one. Find no. of ways this division can be done.
JEE AdvancedJEE Advanced 2019
Solution: