240^2+(500-y)^2 = x^2, y^2 + 240^2 = z^2, z^2 + x^2 = 500^2, x>z>y