Solving equations with constant addition and division