How many different ways are there to color a 3×3 grid with green, red, and blue paints, using each color 3 times?