$\begin{array}{l}a)\,\,(x-1)(y+2)=3\\\text{mà $x,y \in \mathbb{Z}$}\\\to x-1,y+2\in Ư(3)=\{\pm1;\pm3\}\\\text{- Ta có bảng sau :}\\\begin{array}{|c|c|} \hline x-1&-3&-1&1&3\\\hline y+2&-1&-3&3&1 \\\hline x&-2&0&2&4\\\hline y&-3&-5&1&-1\\\hline\end{array}\\ \text{- Vậy các cặp số $(x,y)$ tìm được là : $(-2,-3);(0,-5);(2,1);(4,-1)$} \\\,\\b)\,\,xy-x-y=2\\\Leftrightarrow x(y-1)-y=2\\\Leftrightarrow x(y-1)-(y-1)=2+1\\\Leftrightarrow (x-1)(y-1)=3\\\text{mà $x,y \in \mathbb{Z}$}\\\to x-1,y-1 \in Ư(3)=\{\pm1;\pm3\}\\\text{- Ta có bảng sau :}\\\begin{array}{|c|c|} \hline x-1&-3&-1&1&3\\\hline y-1&-1&-3&3&1 \\\hline x&-2&0&2&4\\\hline y&0&-2&4&2\\\hline\end{array}\\ \text{- Vậy các cặp số $(x,y)$ tìm được là : $(-2,0);(0,-2);(2,4);(4,2)$}\end{array}$