In a row of five squares, each square is to be colored either red, yellow, or blue, so that no two consecutive squares have the same color. How many ways are there to color the five squares, if there must be at least three yellow squares?
There is only one way to arrange the three yellow squares into the five slots. Now we only have two more slots. Both slots each have \(2\) choices for a color: red or blue. So \(2 \cdot 2 = \boxed{4}\)
That is the number of ways to color the squares. And now, we're done! Hope this helped!