JP
Aha, I forgot to hold a mirror up to it. 12.
You got the right answer, though, i don't think for the right reason. I'm not sure a "mirror" image will work. You need to rotate the second row one unit to get the second possibility for each first row possibiltiy. Holding a mirror will not change the letter under the "x" from a "y" to a "z". Here is a rather long winded explanation for something that is not really that complicated.
The correct answer is (D). This simplest way to solve this is solve this logically by taking one row at a time, and one square at a time in each row if needed. Let us start with the top row. In the top left area, we have the choice of 3 different letters. Next, in the top center area, we now have the choice of only 2 different letters so as not to match the first letter, and in the last box, we must use the last of the 3 choices of letters as not to match either of the letters in the first two areas. Hence, we have 3 x 2 x 1 or 6 ways to fill in the top row without duplicating a letter across it.
Now letтАЩs take a particular arrangement of the top row, say the one given in the example above. Since the top-left letter is an X, we could put either a Y or a Z into the 2nd row-left area. LetтАЩs put a Y in that space. Now, in order to maintain the constraint of not duplicating any letter in any row, we can only put an X or a Z in the center area. But if we put an X in the center area, we are forced to put a Z in the 2nd row-right area in order not to duplicate the previous letters in the 2nd row, but that would match the Z directly above, so this choice is not possible. However, if we put a Z in the center area, we are now forced to put an X in the 2nd row-right area and this would be consistent with our constraint and Y-Z-X is a possible combination for the 2nd row.
Now, letтАЩs say that we put a Z in the 2nd row-left area. Now we can only put an X in the center square so as not to match the Y above it or the Z to the left of it. This forces us to put a Y in the 2nd row-right area, which is still consistent with our constraints, and Z-X-Y is the only other possible combination for the 2nd row, i.e., there are exactly two possible 2nd rows: Y-Z-X and Z-X-Y. Similar logic can be performed for any of the 6 possible arrangement of the top row. This means that for each of the possible 6 arrangement of the top row, there are exactly 2 possible 2nd row arrangements, or 6 x 2 = 12 possible arrangement of the 1st and 2nd rows together.
Now letтАЩs examine the 3rd row given a particular 1st and 2nd row. Once again, letтАЩs use the specific example above. Note that if the 1st and 2nd rows are X-Y-Z and Y-Z-X, respectively, there is exactly one way to fill out the bottom row, namely Z-Y-X (just choose the letter that doesnтАЩt match the two above it). Since the 3rd row is completely determined by the 1st and 2nd rows, and there are only 12 ways to arrange both the 1st and 2nd rows, there are also only 12 ways to arrange all of the rows and the correct answer choice is (D).