I really feel like I'm going on the wrong track on this problem:

A rectangular piece of cardboard, by , is going to be used to make a rectangular box with an open top by cutting congruent squares from the corners. Calculate the dimensions for a box with the largest volume.

What I did so far was find height to either or . Is that correct?

Also, area is ?

What would I do next?