A child glues 42 cubes with a side length of 1 cm to form a three-dimensional brick with each side being rectangular. If the perimeter of its base is 18 cm, what is the height of the brick in cm?
一个儿童用棱长为1厘米的42个正方体黏合成一个各面为长方形的立体砖．如果其底面的周长是18厘米，则这块砖的高是多少厘米．
<gadget id="calculator">42 / 14</gadget>
<output>3</output>

<result>3</result>