Keep in mind that the absolute value function has two conditions in its definition: |x| = x if x >= 0, and |x| = -x if x < 0. This ensures that the output of |x| is always positive by negating any potential negative values of x.
So, the absolute value of f(x), |x - 2|, will have two possible values:
x - 2, when x - 2 >= 0, and
-(x - 2) = -x + 2, when x - 2 < 0.