The length of a rectangular painting is 3 inches longer than its width. If the diagonal is 15 inches long, what is the length of the painting