For this case what we should do is evaluate the corresponding linear function with the following values:

We must verify that equality is met.
For the following function we have:

Substituting values:

Rewriting:

Therefore, the point (7,1) is on the line.
Answer:
B.) y = -x + 8