To find the slope of a line with two points, we need to find the slope. The slope is defined by the difference between y coordinates divided by the difference between x-coordinates.
For two points A and B:
![\begin{gathered} \begin{cases}A(x_a,y_a) \\ B(x_b,y_b)\end{cases} \\ m=(y_a-y_b)/(x_a-x_b) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/7msj4nmz5jl854i75tbpmjluqy4atvw9r4.png)
In this case, we can call A(0, 6) and B(7, 2)
Then we calculate:
![m=(6-2)/(0-7)=-(4)/(7)](https://img.qammunity.org/2023/formulas/mathematics/college/hku817yeelua6n5jxlmeanjtampcghhawr.png)
Now that we know the slope, the equation of a line is:
![\begin{gathered} \text{For a point }A(x_a.y_a) \\ y-y_a=m(x-x_a) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/5z3bngjntq92syd69zagcy7gyz5q3islox.png)
In this case, we know m and we can take A(0, 6):
![\begin{gathered} y-6=-(4)/(7)(x-0) \\ y=-(4)/(7)x+6 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/y9yi71pmvnvp5kzyeco8h2vec9t6tlf1qo.png)
And that's the equation of the line.