[tex]\displaystyle\\
V_{cub} = 6^3 = 216 ~cm^3\\\\
V_{6~prisme} = V_{cub} = 216~cm^3\\\\
V_{prisma} = \frac{V_{cub}}{6}= \frac{216}{6} =36 ~cm^3 \\\\
Ab_{prisma} = 2^2 = 4~cm^2\\\\
V_{prisma} = Ab_{prisma} \times h\\\\
h= \frac{V_{prisma} }{Ab_{prisma}} = \frac{36~cm^3}{4~cm^2} = \boxed{\bf 9~cm}
[/tex]