x^2+3x-10
=x^2-2x+5x-10
=x(x-2)+5(x-2)
=(x+5)(x-2)
x^2-3x-28
=x^2+4x-7x-28
=x(x+4)-7(x+4)
=(x-7)(x+4)