How to factor algebra X3 - 2x2 - 24xX to the 3rd power minus 2x squared minus 24x equals ?

x^3 -2x^2 -24x
First factor out an x
x(x^2 -2x-24)
Now factor inside the parentheses
What 2 numbers multiply to -24 and add to -2
-6*4 = -24
-6+4 = -2
x( x-6)(x+4)