the general equation of the lines is
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
where m is the slope and b the y-intercept
• calculating the slope
![\begin{gathered} m=(y2-y1)/(x2-x1) \\ \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/j2uc0kxpgl9pcb3qhpe15q1gec4b50awmr.png)
where (x2,y2) is a right point from (x1,y1)
on this case (x2,y2) is (2,8) and (x1,y1) the other point
replacing
![\begin{gathered} m=(8-(-1))/(2-(-4)) \\ \\ m=(9)/(6)=(3)/(2) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/gcfa926xvig92yhjd02ztrh5t63v44a7ve.png)
the slope is 3/2
• Calculating b
replace m and a point to solve b from the general equation. I will use the point (2,8)
![\begin{gathered} (8)=((3)/(2))(2)+b \\ 8=3+b \\ b=8-3 \\ b=5 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/w8v4gclk5kip24etf9hkwps9m6f2vekonv.png)
• rewriting the equation
replace m and b on the general equation
![y=(3)/(2)x+5](https://img.qammunity.org/2023/formulas/mathematics/high-school/2pzjw8ahrdvcm4xn7jxleavsk2ber7bcot.png)