Solving linear and quadratic inequalities questions