Hi Bunuel
The solution provided by you is the fastest. I tried to get the answer with a longer approach and couldn't get the right answer. Can please suggest where am I going wrong.
Area of floor = 3*2 = 6
Area of each block = 1*1 =1
No of blocks required = 6
We have 5 blocks of each white, black and red color.
Total color wise block arrangements that are possible to get from 6 blocks = 5+1, 4+1+1, 3+2+1 and 2+2+2
total ways to get blocks in (5+1) arrangement = 3C1*2C1*6!/5! = 3*2*6 = 36
total ways to get blocks in (4+1+1) arrangement = 3C1*6!/4! = 3*6*5 = 90
total ways to get blocks in (3+2+1) arrangement = 3C1*2C1*6!/2!3! = 3*2*6*5*4*3!/2*3! = 6*6*10 = 360
total ways to get blocks in (2+2+2) arrangement = 6!/2!2!2! = 6*5*4*3*2/2*2*2 = 30*3 = 90
Total = 36+90+360+90 = 576