Wrtie a function using the table below.

X Y

5 2
0 7
5 12
10 17

I think you made a typo

If the first point had been (-5,2), the slope between any pair of those points would be the same, namely slope = 1

so the equation would simply be y = x+7
or f(x) = x+7