Solving equations with addition and division