PUMaC 2018 Combinatrics B Problem 2

There are five dots arranged in a line from left to right. Each of the dots is colored from one of five colors so that no 3 consecutive dots are all the same color. How many ways are there to color the dots?