The correct option is A 20
Let x1,x2,x3 and x4 be four balls selected of each color,
We just have to select four balls,
so, x1+x2+x3+x4=4Max(x1)=4, Max(x2)−3, Max(x3)=2 and Max(x4)=1
and
min of any color is 0=(1+x+x2+x3+x4) be the number of ways in which 0,1,2,3,4 are selected from the red balls
=(1+x+x2+x3) be the number of ways in which 0,1,2,3 are selected from the black balls
=(1+x+x2) be the number of ways in which 0,1,2 are selected from the white balls
=(1+x) be the number of ways in which 0,1 are selected from the yellow balls
So for selecting n balls:=(1+x+x2+x3+x4).(1+x+x2+x3).(1+x+x2).(1+x)
We want only the coeffiecient of x4 as we have to select only 4 balls
,=(1+x+x2+x3+x4).(1+x+x2+x3).(1+2x+2x2+x3)
=(1+x+x2+x3+x4)(1+2x+2x2+x3+x+2x2+2x3+x4+x2+2x3+2x4+x5+x3+2x4+2x5+x6)
=(1+x+x2+x3+x4)(1+3x+5x2+6x3+5x4+3x5+x6)
=5+6+5+3+1 ways=20 ways
So, there are 20 ways in which you can select 4 balls.