One side of a rectangle is 3 inches shorter than the other side, and the perimeter is 54 inches. What are the dimensions of the rectangle?