Pleasant Goat has 42 identical cubes, each with a side length of 1cm. He used all the cubes to build a cuboid. The perimeter of the base of the cuboid is 18 cm. What is the height of the cuboid in centimeters.
喜羊羊有42块相同的正方体，每块棱长是1cm．他用所有正方体来搭建一个长方体．这个长方体底部周长是18cm．长方体的高是多少厘米．
<gadget id="calculator">7 * 2</gadget>
<output>14</output>

<gadget id="calculator">42 / 14</gadget>
<output>3</output>

<result>3</result>