The length of a rectangle is three times its width.
The perimeter of the rectangle is 24 cm.
Calculate the area of the rectangle.