The given triangle is a right angle triangle. Let x represent the missing side. We would find x by applying the pythagorean theorem which is expressed as
hypotenuse^2 = shorter leg^2 + longer leg^2
From the diagram,
hypotenuse = x
longer leg = 40
shorter leg = 9
By applying the theorem, we have