Paint the surface of a cuboid whose edge length is an integer and then cut it into small cubes with an edge length of 1. Among them, there are 40 small cubes with red on both sides, and 66 small cubes with red on one side. What is the volume of this cuboid?
把一个棱长为整数的长方体的表面都涂上红色，然后切割成棱长为1的小立方体．其中，两面有红色的小立方块有40块，一面有红色的小立方块有66块，那么这个长方体的体积是多少？
<gadget id="calculator">6 - 3</gadget>
<output>3</output>

<gadget id="calculator">7 - 3</gadget>
<output>4</output>

<gadget id="calculator">4 + 2</gadget>
<output>6</output>

<gadget id="calculator">7 - 4</gadget>
<output>3</output>

<gadget id="calculator">3 + 2</gadget>
<output>5</output>

<gadget id="calculator">6 * 5 * 5</gadget>
<output>150</output>

<result>150</result>