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