solving equations and inequalities