Solving inequalities with word problems