The perimeter of a rectangle is 54 inches and its area is 182 square inches. How do you find the length and width of the rectangle?