The perimeter of a rectangular garden is 54 feet. The area of the garden is 180 square feet. Find the length and width of the garden.