\(2x+xy+y=5\)
\(x\left(2+y\right)+\left(y+2\right)-2=5\)
\(\left(2+y\right).\left(x+1\right)=5+2\)
\(\left(2+y\right).\left(x+1\right)=7\)
\(=>\left[{}\begin{matrix}2+y=-7\\x+1=-1\end{matrix}\right.=>\left[{}\begin{matrix}y=-9\\x=-2\end{matrix}\right.\)
\(\left[{}\begin{matrix}2+y=-1\\x+1=-7\end{matrix}\right.=>\left[{}\begin{matrix}y=-3\\x=-8\end{matrix}\right.\)
\(\left[{}\begin{matrix}2+y=1\\x+1=7\end{matrix}\right.=>\left[{}\begin{matrix}y=-1\\x=6\end{matrix}\right.\)
\(\left[{}\begin{matrix}2+y=7\\x+1=1\end{matrix}\right.=>\left[{}\begin{matrix}y=5\\x=0\end{matrix}\right.\)
Vậy ta có 4 cặp x,y: \(x=-2;y=-9\)
\(x=-8;y=-3\)
\(x=6;y=-1\)
\(x=0;y=5\)