If you don't want to test random numbers to see what reduces the polynomial to 0, you can try applying the rational root theorem to narrow down the possible choices. The RRT says that the polynomial *may* have rational roots determined by the leading and constant coefficients.
Factors of constant term:

Factors of leading term's coefficient:

Possible rational roots:

(i.e. divide all factors of constants terms by all factors of leading coefficient)
Denoting the given polynomial by

, we get






which tells us that

are actually roots to

. In other words, we can factor

as

Now that we know some roots to the polynomial, we can factor via synthetic division. First by

:
3 | 1 2 -10 -18 9
. | 3 15 15 -9
- - - - - - - - - - - - - - - - - -
. | 1 5 5 -3 0
which says

Next by

(this time dividing the cubic above):
-3 | 1 5 5 -3
. | -3 -6 3
- - - - - - - - - - - - - -
. | 1 2 -1 0
which means

Putting both steps together, we found that

(FYI: There's an alternative algorithm that we could use to immediately divide

by

)
so it turns out that

, whose roots you can find with the quadratic formula. We get
