Let x and y be the two numbers
[tex] x^{2} + y^2 = 58
[/tex] (1)
[tex] x^{2} - y^2 = 40 [/tex] (2)
[tex]x^{2} + y^2 = 58
\underline{x^{2} - y^2 = 40}
[/tex]
[tex]2 x^{2} = 98
x^{2} = 49
x = 7 ; x=-7[/tex]
Substituting this to (1) or (2) will give us
[tex]y=3 ; y=-3[/tex]
x = ±7
y = ±3