Question 563926
x^2-2x+5x-(-x^2+7x) 

Distribute the negative

x^2-2x+5x+x^2-7x
Combine like terms for x^2
2x^2-2x+5x-7x
Combine like terms for x
2x^2-4x