x+4 chia hết cho x+2
=> x+2+2 chia hết cho x+2
=> x+2 chia hết cho x+2 <=> 2 chia hết cho x+2
=> x+2 thuộc Ư(2) = {1,2}
\(\Rightarrow\left\{{}\begin{matrix}x+2=1\\x+2=2\end{matrix}\right.\Rightarrow\left\{{}\begin{matrix}x=-1\left(KTMĐK\right)\\x=0\left(TMĐK\right)\end{matrix}\right.\)
Vậy x=0