Solving Compound Inequalities in Mathematics