The perimeter of a rectangle is 42 cm. One side is 9 cm longer than the other side. Find the lengths of the sides.