Solving equations and inequalities