A octagon marked 1, 2, 3, 4, 5,6,7 and 8 on its eight sides. four colors, pink, yellow,green and blue are used to paint the eight sides of the octagon. If the adjacent faces are painted with the different colors, in how many ways can the octagon be painted?
Choose the correct option.
A) 6
B) 4
C) 27
D) 12
E) 8
If the base of the Octagon is pink, then in order the adjacent faces to be painted with the different colors, the top must also be pink. 6 side faces can be painted in Yellow-Blue-Green Yellow-Blue-Green OR Blue-Green-Yellow Blue-Green-Yellow(2 options).   But we can have the base painted in either of the three colors, thus the total number of ways to paint the Octagon is  4*2= 
<gadget id="calculator"> 4*2</gadget>
<output>8</output>
8.   Answer:8.
<result>E</result>
A octagon marked 1, 2, 3, 4, 5,6,7 and 8 on its eight sides. four colors, pink, yellow,green and blue are used to paint the eight sides of the octagon. If the adjacent faces are painted with the different colors, in how many ways can the octagon be painted?