\(\Rightarrow2\left(x+3\right)-x\left(x+3\right)=0\Rightarrow\left(x+3\right)\left(2-x\right)=0\)
\(\Rightarrow\left[{}\begin{matrix}x=-3\\x=2\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-3\\x=2\end{matrix}\right.\)
2(x+3)-x(x+3)=0
x+3=0 hoặc 2-x=0
x=-3 hoặc x=2
Vậy \(x\in\left\{-3;2\right\}\)