You need to split it up into two equations.

x-5>2 and x-5<-2
solve these to get x > 7 and x < 3.

To graph, make a number line and draw arrows going away from each other on the line that start at 3 and 7, respectively, Use an open point instead of a closed point on the 3 and 7