Both answers are correct. -5 > -8 and -6 < |-8|.
I think you might have been worried about the -8 in the second problem. This | | is an absolute value sign. It basically turns any negative number positive. So this would actually be -6 < 8 .
5.7m questions
7.4m answers