Write the values of that satisfy as an interval.
If the problem is: -5 < x then x > -5 ---> (-5, infinity)
Use parentheses because the -5 is not included; infinity always gets a parenthesis.
I may have misunderstood the problem; if the problem is -5 < x <= 2, then the answer is (-5, 2]
Round brackets if not included; square brackets if included.