The area of a rectangle is 36 square inches, and its perimeter is 26 inches. What are the length and width of the rectangle?