One side of a rectangle is 4 inches longer than the other side. The area of the rectangle is 21 square inches. Find the lengths of each side.