y-y1=m(x-x1) where m is gradient
But let’s find Gradient which is m
m=(y2-y1)/(x2-x1)
x1=2 y1=2 x2=7 y2=17
m=(17-2)/(7-2)
m=15/5
m=5
Now y-y1=m(x-x1)
y-2=5(x-2)
y-2=5x-10
Collect like terms
5x-10+2=y
Now we arrange in this mx+c=y
Where m is gradient—c is a constant/number and
5x-8=y
The equation of the line is 5x-8=y