(a+b)x3+(3a+2b-c)x2+(2a-b-3c)x-2b-2c
=(a+b)x^3+(2a+2b)x^2+(a-c)x^2+(2a-2a)x-(b+c)x-(2b+2c)
=(a+b)x^2(x+2)+(a-c)x(x+2)-(b+c)(x+2)
=[(a+b)x^2+(a-c)x-(b+c)](x+2)
=[(a+b)x-(b+c)](x+1)(x+2)
(a+b)x3+(3a+2b-c)x2+(2a-b-3c)x-2b-2c
=(a+b)x^3+(2a+2b)x^2+(a-c)x^2+(2a-2a)x-(b+c)x-(2b+2c)
=(a+b)x^2(x+2)+(a-c)x(x+2)-(b+c)(x+2)
=[(a+b)x^2+(a-c)x-(b+c)](x+2)
=[(a+b)x-(b+c)](x+1)(x+2)