Solving equations with subtraction