Using the variables, the drawing, and the given total length, find an equation for the total length, in terms of "x" and "y". Solve this equation for y, in terms of x.
Write down the equation for the area A in terms of the lengths x and the depth y. Replace "y" with the expression from above.
If you get stuck, please reply showing your steps and reasoning so far. Thank you!