The answer is 50 meters. To get this, you take the square root of (30 squared + 40 squared). You generally use the hypotenuse formula to get the answer. The total length of the hypotenuse of a right triangle can as well be found by using the Pythagorean theorem. See http://www.mathsisfun.com/pythagoras.html.