2xy-x+y=2
=>\(x\left(2y-1\right)+y-0,5=1,5\)
=>\(\left(y-0,5\right)\cdot2x+\left(y-0,5\right)=1,5\)
=>\(\left(2x+1\right)\left(y-0,5\right)=1,5\)
=>\(\left(2x+1\right)\left(2y-1\right)=3\)
=>\(\left(2x+1;2y-1\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(0;2\right);\left(1;1\right);\left(-1;-1\right);\left(-2;0\right)\right\}\)