In right triangle ABC, angle C = 90˚. Median AM has a length of 19, and median BN has a length of 18. What is the length of the hypotenuse of the triangle?