Solving Linear And Quadratic Inequalities