To solve the problem we need to add/subtract like terms. We need to remember that like terms are the terms that share the same variable and the same exponent.
For example, we have:
We have that we were able to add just the terms that were sharing the same variable and exponenr (x for this case).