Solving inequalities with one variable