The length of a rectangle is 4 inches less than its width, and its perimeter is 24 inches. Find the length and width of the rectangle.

What is the length and width?