simplify the polynomial 2x^2+6x-7x+8-3x^2

collect terms of equal degree

2x^2+6x-7x+8-3x^2
2x^2-3x^2 + 6x-7x + 8
-x^2 - x + 8