With the points first, we will calculate the slope m
(-1,-2) =(x1,y1)
(3,10)=(x2,y2)
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]then we substitute the values
[tex]m=\frac{10+2}{3+1}=\frac{12}{4}=3[/tex]the slope is m=3
point-slope form
[tex]y-y_1=m(x-x_1)[/tex]
then we substitute the values and we obtain this form
the point slope form is
[tex]y+2=3(x+1)[/tex]slope-intercept form
[tex]y=mx+b[/tex]
we clear y of the point-slope form and we obtain the slope-intercept form
[tex]\begin{gathered} y=3x+3-2 \\ y=3x+1 \end{gathered}[/tex]the slope-intercept form is
y=3x+1