If you start with a 12x16 rectangle and cut square with side length x, when you bend the sides you'll have an inner rectangle with sides and , and a height of x.
So, the volume will be given by the product of the dimensions, i.e.
The derivative of this function is
and it equals zero if and only if
If we evaluate the volume function at these points, we have
So, the maximum volume is given if you cut a square with side length