group the terms and take out the common factor first
x^2(x-2)-9
(x^2-9)(x-2)
which can be rewritten as
(x^2+0x-9)(x-2)
now, simplify the first bracket by splitting the middle term.
(x^2+3x-3x-9)(x-2)
x(x+3)-3(x+3)(x+2)
the final answer is (x+3)(x-3)(x+2)
glad to help frosted muffin.