\(xy+x+2y=5\)
\(\Leftrightarrow x\left(y+1\right)+2\left(y+1\right)=7\)
\(\Leftrightarrow\left(x+2\right)\left(y+1\right)=7\)
Vì x ; y là stn
Nên \(\hept{\begin{cases}x+2\ge2\\y+1\ge1\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}x+2=7\\y+1=1\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}x=5\\y=0\end{cases}}\)
Vậy x = 5 ; y= 0