A farmer decides to enclose a rectangular​ garden, using the side of a barn as one side of the rectangle. What is the maximum area that the farmer can enclose with 48 ft of​ fence? What should the dimensions of the garden be to give this​ area?