Question: I'm learning calculus but I'm very stuck in this exercise.

[![enter image description here](https://i.stack.imgur.com/LDTKg.png)](https://i.stack.imgur.com/LDTKg.png)
[Exercise](https://i.stack.imgur.com/LDTKg.png)

I know that the volume is :
2HL + 2HW + LW (only LW because open top).

Thanks to the exercise we know that:

W = 12 - 2x
L = 20 - 2x
H = x

Consequently I replaced the values:

2x(20 - 2x) + 2x(12 - 2x) + (20 - 2x)\*(12 - 2x)

= -4x^2 + 240

**My function is f(x) = -4x^2 + 240**

However, **I don't understand why in the correction it is written 4x^3 - 64x^2 +240x ?**

[Correction](https://i.stack.imgur.com/A6IZ7.png)

Answer: 
As the comment shows, the length of the horizontal box's basis is $\;20-2x\;$ and the vertical one is $\;12-x\;$, so the base's area is $\;(20-2x)(12-2x)=4x^2-64x+240\;$, and since the height is $\;x\;$ your volume function is

$$f(x)=x(4x^2-64x+240)=4x^3-64x^2+240x$$
You haven't calculated the volume of the box, but the surface of the cutout.