If f(x) = mx + b, then the slope is m. So, m = -1.
Therefore, f(x) = -1x + b
Since f(1) = 2, we have: f(1) = -1(1) + b = 2
-1 + b = 2
b = 3
f(x) = -x + 3