Theory
Like terms have the same letter part and the same powers. 3x and 5x are like terms; 3x and 5x² are not. Numbers without letters are also like terms with each other.
Add or subtract only the coefficients of like terms. 3x + 5x = 8x because three x's plus five x's make eight x's. The x is not squared by addition.
Keep each sign attached to its term. In 7a - 4a + 2, the coefficients 7 and -4 combine to give 3a; the 2 stays separate.
For expressions with two letters, group x terms, y terms and constants separately. Reordering terms is allowed when you carry their signs with them.
Check by substituting a simple value into the original and simplified expressions. If the two values disagree, you probably combined unlike terms or lost a sign.