x^2-2x+7x-14=x(x-2)+7(x-2)=(x+7).(x-2)
a, x2 + 3x - 40
= x2 - 8x + 5x - 40
= x ( x - 8 ) + 5 ( x - 8 )
= ( x - 8 ) ( x + 5 )
b, x2 + 5x - 14
= x2 - 2x + 7x - 14
= x ( x - 2 ) + 7 ( x - 2 )
= ( x - 2 ) ( x + 7 )
x^2-5x+8x-40=x(x-5)+8(x-5)=(x+8).(x-5).....xong rồi đấy