"Like terms" contain identical variables. The numbers to the left of each term (coefficients) can be simply added or subtracted IF attached to identical variables, or like terms.
A variable can just be different single letters (a, b, x, y, etc) OR a combination of single letters (ab, xy) OR contain exponents (a2, x2y3). All of these can be added or subtracted according to their coefficients ONLY if both terms' entire variable is identical. A number not attached to any variables is just treated as a number.
**keep in mind, a variable standing alone is understood to have a coefficient of 1.
Because the coefficient is actually the number the variable is MULTIPLIED BY, so a standalone variable is there ONE TIME. This goes further, but that's a job for Algebra 1 :)
Examples:
2x + 3x ==> 5x
2x + 3xy ==> 2x + 3xy (x and xy are not identical, so they can't be combined)
2x + 3y ==> 2x + 3y (because x and y are not like terms, they can't be combined)
A bit more complex:
2x + 3y + 2x2 + x + 5x ==> 8x + 3y + 2x2
5xy + 2y - 3xy + 4x - y ==> 2xy + y + 4x
12 + 7ab - a2b - 3ab + 3 ==> 15 + 4ab - a2b