Hey there!
We are given 2 points that the line passes through, so we can easily determine the slope of the line:
[tex]\bold{\displaystyle\frac{y2-y1}{x2-x1} }[/tex]
[tex]\bold{\displaystyle\frac{-2-7}{8-0}=\frac{-9}{8} }[/tex]
So now we have the slope.
However, we also need to find the y-intercept (we are actually given the y-intercept, (0,7) or just 7)
Hence, the equation is
[tex]\boxed{\boxed{\bold{y=-\frac{9}{8} x+7}}}[/tex]
Hope everything is clear.
Let me know if you have any questions; if you do, please comment.
#LearningDoesn'tEnd