Given points:
(-2,-7) and (5,0)
To get the equation of the line, we will use the formula below:
[tex]y_{}-y_1=m(x_{}-x_1)[/tex]From the points given
[tex]\begin{gathered} x_1=-2,y_1=-7 \\ x_2=5,y_2=0 \end{gathered}[/tex]Where
[tex]\begin{gathered} m=\frac{y_2-y_1}{x_2-x_1}=\frac{0-(-7)}{5-(-2)}=\frac{7}{7}=1 \\ m=1 \end{gathered}[/tex]Substituting the values into the equation
[tex]\begin{gathered} y-(-7)=1(x-(-2)) \\ y+7=1(x+2) \\ y+7=x+2_{} \\ \end{gathered}[/tex]simplifying further
The equation of the line is:
[tex]y=x-5[/tex]The graph of the points (-2,-7) and (5,0) is given below: