Draw a diagram to confirm that the dimensions of the 3-d box will be V(x) = x(15 - 2x)(40 - 2x) , where x is the side length of the squares to be cut from the four corners. Because 15 is the smaller of the two given dimensions, the valid domain for the volume function is 0 < x < 7.5. We find the maximum volume by taking the derivative (using power rule), setting it = 0, and solving. That gives the ideal x-value, which we finally plug into the volume equation to arrive at the max volume:
V(x) = 4x3 - 110x2 + 600x ; 0 < x < 7.5
V'(x) = 12x2 - 220x + 600 = 0
3x2 - 55x + 150 = 0 Use quadratic formula to proceed ...