Answer:
h = 7 cm
Explanation:
In order to calculate the height of the triangular prism you use the formula for its volume, which is given by:
(1)
V: volume = 42 cm3
b: base of the triangular face = 2 cm
l: length of the prism = 6 cm
h: height = ?
You solve the equation (1) for h, the height of the triangular prism:

You replace in the last equation the values of V, b and l:

hence, the height of the triangular prism is 7 cm