Factor the polynomial.

3x^3 - 12x^2 + 27x

3x(x^2 - 4x + 9)