The perimeter of a rectangle is 24 inches. Its length is 8 inches longer than its width. What is the length and width of the rectangle.​