<image>As shown in the figure, there are four regions A, B, C, and D, which are to be colored using three colors: red, yellow, and blue. The requirement is that any two adjacent regions must have different colors. How many different ways of coloring are there altogether?
