The base of an isosceles triangle is 18 meters and its height is 40 meters. Find the
length of one of the legs of the isosceles triangle.