With the points first, we will calculate the slope m
(-1,-2) =(x1,y1)
(3,10)=(x2,y2)
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/78uaqhwt0aws3qfwxigaftpihnmb1gzxtp.png)
then we substitute the values
![m=(10+2)/(3+1)=(12)/(4)=3](https://img.qammunity.org/2023/formulas/mathematics/college/smbkna6pfkf3tcd0wbbgflq9vjjwstsdg6.png)
the slope is m=3
point-slope form
![y-y_1=m(x-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/csobd57zth7rh9k4hz9amldzpq2owf0z4j.png)
then we substitute the values and we obtain this form
the point slope form is
![y+2=3(x+1)](https://img.qammunity.org/2023/formulas/mathematics/college/dwlczwdk16q5h20grwclx0lsh7ufgvimhc.png)
slope-intercept form
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
we clear y of the point-slope form and we obtain the slope-intercept form
![\begin{gathered} y=3x+3-2 \\ y=3x+1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/fobke727efln82en03gr4evjynixs78vwx.png)
the slope-intercept form is
y=3x+1