Anya has blue, green, and red paints. She wants to paint a wooden cube in such a way that each of the cube's faces is painted with one of these colors and there are exactly two faces of each color. In how many distinct ways can she do this? Note that painting arrangements that can be obtained by rotating the cube are considered identical.