Given data:
The first point given is (5,2) .
The second point given is (7,0).
The slope of the given points is,
[tex]\begin{gathered} m=\frac{0-2}{7-5} \\ =-1 \end{gathered}[/tex]The equation of the line passing through the given points is,
[tex]\begin{gathered} y-2=m(x-5) \\ y-2=-1(x-5) \\ y-2=-x+5 \\ y=-x+7 \end{gathered}[/tex]Compare the above equation with the standard equation of the line.
[tex]y=mx+c[/tex]Here, c is y-intercept.
Thus, the slope of the line is - 1, y-intercept is 7, and equation of the line is y = -x+7.