If a math student squared all three sides of a right triangle and the results were 49, 625, and 576, what is the length of the longest leg of that triangle?