Ron has to color in three shapes (square,circle and triangle) with different colors (red,blue,green). In how many different ways can the shapes be colored??