A rectangular closet has a perimeter of 18 feet and an area of 20 square feet. What are the dimensions of the closet.