Which expression is the result of factoring the expression below by taking out its greatest common factor?
6x^2 - 3x +12=
A. 3x(2x^2-x+4)
B. 6x(x^2 -3x+2)
C. 3(2x^2 - x +4)
D. 6(x^2-3x+2)