Bài 1 :
\(xy+2=2x+y\)
=> \(xy-y-\left(2x-2\right)=0\)
=> \(y\left(x-1\right)-2\left(x-1\right)=0\)
=> \(\left(y-2\right)\left(x-1\right)=0\)
=> \(\orbr{\begin{cases}y-2=0\\x-1=0\end{cases}\Rightarrow\orbr{\begin{cases}y=2\\x=1\end{cases}}}\)
=> \(\orbr{\begin{cases}y=2;x\in Z\\x=1;y\in Z\end{cases}}\)