3x^2+4x^2-7x+2

what are we doing ?

factoring ?

check your typing , you have two x^2 terms , quite unusual.