Three large squares of tin, each with edges 1m long, have four small, equal squares cut from their corners. All twelve resulting small squares are to be of the same size. The three large cross-shaped pieces are then folded and welded to make boxes with no tops, and the twelve small squares are used to make two small cubes. How should this be done to maximize the total volume of all five boxes?

------------------------------------------------------------

My working:

for maxima.

or

------------------------------------------------------------

However, the answer given in the book is:

(all cubes, no open topped boxes)

Please help!