Expressing inequalities graphically and algebraically