xy=1044
x+y=7
y=7-x
sub
x(7-x)=1044
7x-x^2=1044
0=x^2-7x+1044
use quadratice equaiton which is if you have
ax^2+bx+c=0 then
x=

ax^2+bx+c=0
1x^2-7x+1044=0
a=1
b-7
c=1044
x=

x=

x=

x=

aprox
x=-3.5+32.120865492698i or
-3.5- 32.120865492698i
where i=√-1
so the numbers are -3.5+32.120865492698i and
-3.5- 32.120865492698i
where i=√-1