a: ta có: \(x^2+3x-\left(2x+6\right)=0\)
\(\Leftrightarrow\left(x+3\right)\left(x-2\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-3\\x=2\end{matrix}\right.\)
b: Ta có: \(5x+20-x^2-4x=0\)
\(\Leftrightarrow\left(x+4\right)\left(5-x\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-4\\x=5\end{matrix}\right.\)