Let x = length of a side of one of the square cutout corners
After cutting the cardboard and folding, we get a box (with no top). The bottom of the box is a rectangle with dimensions 8-2x by 18-2x. The height of the box is x.
V(x) = volume of box
= x(8-2x)(18-2x) = x(4x2 - 52x + 144)
V(x) = 4x3 - 52x2 + 144x
Set V'(x) = 0 to find the value of x which gives maximum volume.