There is a rectangular piece of cardboard with a length of 40 cm and a width of 20 cm, and a square with a side length of 5 cm is cut from each of the four corners, and then made into a carton. What is the volume of the carton in cubic centimeters?
有一张长40厘米，宽20厘米的长方形硬纸片，从四个角各剪去边长为5厘米的正方形一个，然后做成纸盒．该纸盒的容积为多少立方厘米？
<gadget id="calculator">5 * 2</gadget>
<output>10</output>

<gadget id="calculator">40 - 10</gadget>
<output>30</output>

<gadget id="calculator">20 - 10</gadget>
<output>10</output>

<gadget id="calculator">30 * 10 * 5</gadget>
<output>1_500</output>

<result>1_500</result>