Stack several small cubes of the same volume to form a large cube, and then paint the surface of the big cube. It is known that there are 24 small cubes painted red on both sides. How many of these small cubes are there in total?
把若干个体积相同的小正方体堆成一个大的正方体，然后在大正方体的表面涂上颜色，已知两面被涂上红色的小正方体共有24个，那么，这些小正方体一共有多少个？
<gadget id="calculator">24 / 12</gadget>
<output>2</output>

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

<gadget id="calculator">4 * 4 * 4</gadget>
<output>64</output>

<result>64</result>