Solving equations using addition and subtraction