\(xy+2x-y=2\)
\(\left(xy+2x\right)-y-2=0\)
\(x\left(y+2\right)-\left(y+2\right)=0\)
\(\left(y+2\right)\left(x-1\right)=0\)
\(\Rightarrow\orbr{\begin{cases}y+2=0\\x-1=0\end{cases}\Rightarrow\orbr{\begin{cases}y=-2\\x=1\end{cases}}}\)
\(xy+2x-y=2\\ \left(xy+2x\right)-y-2=0\\ x\left(y+2\right)-\left(y+2\right)=0\\ \left(y+2\right)\left(x-1\right)=0\)
\(\Rightarrow\orbr{\begin{cases}y+2=0\\x-1=0\end{cases}}\)
\(\Rightarrow\orbr{\begin{cases}y=-2\\x=1\end{cases}}\)