Solving inequalities with specific solutions