A rectangular garden has a perimeter of 120 feet. How do you find an equation for the area of the rectangle as a function of the width, then determine the length and width of the rectangle which provide the maximum area?