A large cube of wood is painted green on all six sides, and then divided into several small cubes with a side length of 1 cm. Among them, there are 24 small cubes of wood painted green on one side, and then painted green on both sides. How many small cubes are there in total?
一个大正方体木块6个面都涂上绿色，再把它分割成若干个棱长为1厘米的小正方体木块，其中一面涂有绿色的小正方体木块共有24个，那么两面涂上绿色的小正方体木块共有几个？
<gadget id="calculator">24 / 6</gadget>
<output>4</output>

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

<gadget id="calculator">2 * 12</gadget>
<output>24</output>

<result>24</result>