Any of the 3 digits can occupy the first position, and any of the 3 digits can occupy the second position. So, if there is no restriction on repeating the digits, then the answer is 3*3 = 9. If, in opposite, THERE IS such a restriction, then the answer is 3*2 = 6. The fact that the problem does not formulate the presence ot the absence of the restriction, is the author's FAULT.