<p>if its 2 units away from 12...means that the "change" or "difference" must be less than 2, i guess
the clue is when it says "within"
and because its the distance between x and 12, it has to be |x-12|</p>
<p>If you're not good with abs val, this is a good one for the "plug in and check" method.
Find the one that works when x is 11 or 13 (within 2), but fails when x is 9 or 15 (not within 2).
That's (D), as pointed out above.</p>