solving and graphing compound inequalities