The function f is defined by f(x)=∣x−5∣. If f(a)=7, which of the following could be the value of a?
-12
-7
-2
5