A linear equation like 3x + 5 = 20 is solved by "undoing" whatever was done to x, in reverse order of operations:
1. Move constants to one side (add or subtract the same value from both sides).
2. Divide both sides by the coefficient in front of the variable.
Inequalities (<, >, ≤, ≥) work exactly the same way, with one critical exception: if you multiply or divide both sides by a NEGATIVE number, you must flip the inequality sign. For example, -2x < 8 becomes x > -4 (not x < -4) once you divide by -2.
Compound and multi-step problems just repeat these two moves: simplify each side first (distribute, combine like terms), then isolate the variable.