Solving equations by dividing and adding/subtracting