xy=5;x-y=4
=>xy+x-y=5+(-4)
=>x(y+1)-y=1
=>x(y+1)-y-1=0
=>x(y+1)-(y+1)=0
=>x-1)(y+1)=0
=>x-1=0 hoac y+1=0
=>x=1 hoac y=(-1)
=>x=1;y=5 hoac x=(-5);y=(-1)
Vay.........................................
x-y=-4=> x=-4+y
x.y=5
(-4+y).y=5
-4y+y^2-5=0
y^2-4y-5=0
y^2-5y+y-5=0
y(y-5)+(y-5)=0
(y-5)(y+1)=0
y-5=0 hoặc y+1=0
=> y=5,y=-1
với y=5=> x=-4+5=1
với y=-1=> x=-4-1=-5