That's the number of different ways to color the faces with 3 colors if each face is "unique", i.e. 3^6 = 729. However, since each face is not unique, there are ways to rotate the cube so many of the colorings will match each other. The actual answer is 57.