The general equation of the line has the form:
y = mx + c
where m is the slope of the line and c is the y-intercept
The two given points are: (-1,7) and (2,10)
First, we will get the slope of line as follows:
slope (m) = (y2-y1) / (x2-x1) = (10-7) / (2--1) = 1
The equation now becomes:
y = 1x + c
y = x+c
Now, to get the value of the y-intercept, use any of the given points and substitute with its x and y values in the equation.
I will use (2,10) as follows:
y = x+c
10 = 2 + c
c = 10-2 = 8
Based on the above calculations, the equation of the line is:
y = x+8
which can also be rewritten as:
y - x = 8
The correct choice is the first one