Im having a bit of trouble with the following question, can anyone help?

800m of fencing are used to construct 8 rectangular animal pens.

a) show that y=800-12x

10

b) find the area A, of each pen, in terms of x.

c) find the dimensions of each pen when each is a maximum

d) what is the maximum are of each pen?

Thanks in advance