Factor 3x^3+x^2+27x+9