\(x^2+5x+6=0\)
\(\Leftrightarrow x^2+2x+3x+6=0\)
\(\Leftrightarrow x\left(x+2\right)+3x+6=0\)
\(\Leftrightarrow x\left(x+2\right)+3\left(x+2\right)=0\)
\(\Leftrightarrow\left(x+3\right)\left(x+2\right)=0\)
\(\Rightarrow\orbr{\begin{cases}x+3=0\\x+2=0\end{cases}}\)
\(\Rightarrow\orbr{\begin{cases}x=-3\\x=-2\end{cases}}\)