2:
x+xy+y=4
=>x(y+1)+y+1=5
=>(x+1)(y+1)=5
=>\(\left(x+1;y+1\right)\in\left\{\left(1;5\right);\left(5;1\right);\left(-1;-5\right);\left(-5;-1\right)\right\}\)
=>\(\left(x,y\right)\in\left\{\left(0;4\right);\left(4;0\right);\left(-2;-6\right);\left(-6;-2\right)\right\}\)