Since the triangles are similar, we know that the sides are proportional. Therefore, we can set up a proportion to solve for the missing side:
24 cm/10 cm=x cm/5 cm
*make sure you match up the height and base accordingly when setting it up*
(24)(5)=(10)x
120=10x
x=12
The height is 12 centimeters.