factor -47
it's prime
we have to use quadratic
so
set equations
x+y=18
xy=-47
x+y=18
minus x from both sides
y=18-x
sub 18-x for y in other equatin
x(18-x)=-47
distribute
18x-x^2=-47
times both sides by -1
x^2-18x=47
minus 47 from both sides
1x^2-18x-47=0
for equation
ax^2+bx+c=0
x=

a=1
b=-18
c=-47
x=

x=

x=

x=9+/-8√2
the numbers are
9+8√2 and 9-8√2