GAUSS7 1999 Problem 22

Forty-two cubes with 1 cm edges are glued together to form a solid rectangular block. If the perimeter of the base of the block is 18\:cm, then the height, in cm, is

Answer Choices
A. 1
B. 2
C. \frac73
D. 3
E. 4