Math New Drill (Level 1) : Number of cases Problem1(4) JOSAIKAWAGOE-2014

There are four balls of red, blue, yellow, green and four boxes of red, blue, yellow. 
How many ways to put each ball in each box so that it may be different from the color of the ball and the box are there?






Answer
9 ways

Solution
When putting a blue ball in a red box as shown in the table below, number of ways putting other balls in other boxes is three altogether.
Since there are three kind of balls of blue, yellow and green to put in red box, there are 3 × 3 = 9 in total.