\(xy-x+2y-2=1\)
\(\Leftrightarrow x\left(y-1\right)+2\left(y-1\right)=1\)
\(\Leftrightarrow\left(x+2\right)\left(y-1\right)=1\)
TH1: \(\left\{{}\begin{matrix}x+2=1\\y-1=1\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}x=-1\\y=2\end{matrix}\right.\)
TH2: \(\left\{{}\begin{matrix}x+2=-1\\y-1=-1\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}x=-3\\y=0\end{matrix}\right.\)