\(x^2-3x-2x+6=0\\ x^2-5x+6=0\\ x^2-2x-3x+6=0\\ x\left(x-2\right)-3\left(x-2\right)=0\\ \left(x-3\right)\left(x-2\right)=0\)
=> x=3 ;x=2
\(\left(x^2-3x\right)-2\left(x-3\right)=0\\\Rightarrow x\left(x-3\right)-2\left(x-3\right)=0\\ \Rightarrow\left(x-2\right)\left(x-3\right)=0\\\Rightarrow \left[{}\begin{matrix}x-3=0\\x-2=0\end{matrix}\right.\Rightarrow\left[{}\begin{matrix}x=2\\x=3\end{matrix}\right.\)