If one leg of a right triangle is 40 units and the other leg is 30 units, what is the length of the hypotenuse (in units)?