First of all, remember what the equation of a line is:
y = mx+b
Where:
m is the slope, and
b is the y-intercept
First, let's find what m is, the slope of the line...
[tex]\begin{gathered} m=\frac{y2-y1}{x2-x1} \\ m=\frac{-5-2}{-5-0} \\ m=\frac{-7}{-5} \\ m=\frac{7}{5} \\ \end{gathered}[/tex]Now, what about b, the y-intercept?
[tex]\begin{gathered} b=y-mx \\ b=2-\frac{7}{5}(0) \\ b=2 \end{gathered}[/tex]The equation of the line that passes through the points
[tex]y=\frac{7}{5}x+2[/tex]