In how many ways can 3 identical red balls, 3 identical green balls, and 3 identical blue balls be arranged in a 3x3 grid, such that each row and each column of the grid contains 1 red ball?

its 2*3!=12

SO 12