>>275
2x-6a-2x^2+18a^2
= -2 (x^2 -x +3a -9a^2)
= -2 (x^2 -x -3a(3a-1))
= -2 (x-3a) (x+3a-1)