\(a,\frac{x+6}{x+1}\)
\(\left\{\left(x+6\right)-\left(x+1\right)\right\}⋮x+1\)
\(5⋮x+1\)
\(x+1\inƯ_{\left(5\right)}=\left\{-5;5;1;-1\right\}\)
\(=>x\inƯ_{\left(5\right)}=\left\{-6;4;0;-2\right\}\)
\(b,\frac{x-2}{x+3}\)
\(\left\{\left(x+3\right)-\left(x-2\right)\right\}⋮x+3\)
\(5⋮x+3\)\(=>x+3\inƯ_{\left(5\right)}=\left\{-5;5;-1;1\right\}\)
\(=>x\in\left\{-8;2;-4;-2\right\}\)