A right triangle has perimeter equal to 198 and area equal to 1386. What is the length of the hypotenuse?

x+y+z = 198

xy = 2772

x^2+y^2 = z^2

Solve the equation for z