If 8 teachers finish one whole pie, and they need to feed 47, then they need 6 pies with 8 slices each aka 48 slices total, there will be one slice leftover for the principal :D
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