For the function g(x)=∣x+7∣, which of the following values of x results in g(x)=2?
−9 only
−5 only
−9 or −5
9 or 5