The equation of a line has always the form
![y=m\cdot x+b](https://img.qammunity.org/2023/formulas/mathematics/college/3vdit4cyikmz0crw73cnwv4b8bte4f6lad.png)
where "m" is called its slope, and "b" is called its y-intercept. It's a well-known fact that m can be calculated using two points of the line. Let's use A and B:
![m=(-5-1)/(-4-(5))=(-6)/(-9)=(6)/(9)=(2)/(3)](https://img.qammunity.org/2023/formulas/mathematics/college/2j3nbnasbuh8vj1u0aqijn22dxhmdm9sks.png)
Then, our equation becomes
![y=(2)/(3)x+b](https://img.qammunity.org/2023/formulas/mathematics/college/xmeci6li12r7ataumxfn3oftfazlxo0o2x.png)
Replacing A there, we get
![\begin{gathered} 1=(2)/(3)(5)+b\Rightarrow1=(10)/(3)+b\Rightarrow\ldots \\ \ldots b=1-(10)/(3)=-(7)/(3) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/hd8mbgvyrr0w6m1jgyy6jgy9b2ysk7z9oo.png)
Having found m and b, the final answer is
![y=(2)/(3)x-(7)/(3)](https://img.qammunity.org/2023/formulas/mathematics/college/fl2osvu720q27zdsab55sy35do940axi4s.png)