I am not sure how to solve this math problem.

A farmer wishes to enclose a rectangular region bordering a barn with fencing (shown below). Suppose that x represents the length of each of the three parallel pieces of fencing. She has 600 feet of fencing available.
A. What is the length of the remaining pieces of fencing in terms of x?
B. Determine a function that represents the total area of the enclosed region. Give the restrictions on x.
C. What dimensions for the total enclosed region would give an area of 22,500 square feet?
Also, how do I find the maximum area enclosed?