Let x be the side of the square base, and let y be the height (depth) of the box.
We are to maximize the volume, which is
We need that volume formula to be in a single variable. Use the given information about the amount of material used to make the box (bottom and four sides) to solve for y in terms of x and substitute in the volume formula.
[the total area of the base and four sides is 64 square cm]
Find the derivative and set it to zero to find the value of x that maximizes the volume.