\(=\left(x^2+6x+8\right)\left(x-3\right)\)
\(=x^3-3x^2+6x^2-18x+8x-24\)
\(=x^3+3x^2-10x-24\)
=>(x2 + 6x + 8) (x-3)
=>x3 - 3x2 + 6x2 - 18x + 8x - 24
=>x3 + 3x2 - 10x - 24
\(\left(x+2\right)\left(x-3\right)\left(x+4\right)\\ =\left(x^2-3x+2x-6\right)\left(x+4\right)\\ =\left(x^2-x-6\right)\left(x+4\right)=x^3+4x^2-x^2-4x-6x-24\\ =x^3+3x^2-10x-24\)