Let the width be and the length be , then from what you say above the height is also .

The area of netting is:

(one end piece of and two sides and a top of )

Also the volume:

Now use the last equation above to eliminate wither or from the first equation, which leaves you with an expression in a single variable for , and you know how to find the minimum for such a problem.

CB