
Mary has crayons in three colors. She fills four areas A, B, C, and D with her crayons, and an area can be painted with only one of these three colors. If the colors of two adjacent areas cannot be repeated, how many filling methods are there in total?