Answer:
20- max volume dimension
Explanation:
since we don't know the amount of cardboard cut off, we'll take it as "x"^^
so the bottom of the box have dimensions of 40-2x(since squares are cut from both corners in a side) by 40-2x hence we can take area of base as
(40-2x)^2
since v=base*height
lets take height as x
x(40-2x) (40-2x)=v
(40x-2x^2)(40-2x)=v
4x^3-160x^2+1600x=v
take the derivitive: 12x^2-320x+1600
factor:
4(3x^2-80x +400)=0
4(3x-20)(x-20)=0
12x-80=0
x-20=0
x=20, 6.667(reduced from 6.66666666667)