We have the following equation for the lateral surface area of a triangular prism:

where a,b and c are the measures of the sides of the triangular base.
In this case, we have the following:

using the formula, we get:

now, we can solve for h to find the height:

therefore, the height of the solid is 31 cm