Answer:
y = x + 2
Explanation:
We start by writing the coordinates pair
(x, f(x))
So we have;
(5,7) and (-2,0)
We start by getting the slope;
m = y2-y1/x2-x1
m = 0-7/-2-5 = -7/-7 = 1
The equation of a linear equation has the general form;
y = mx + c
m is the slope and c is the y-intercept
y = x + c
to get the value of c, we make a simple substitution
we can use the x and y values of any point
7 = 5 + c
c = 7-5
c = 2
So the equation is;
y = x + 2