With the points first, we will calculate the slope m
(-1,-2) =(x1,y1)
(3,10)=(x2,y2)

then we substitute the values

the slope is m=3
point-slope form

then we substitute the values and we obtain this form
the point slope form is

slope-intercept form

we clear y of the point-slope form and we obtain the slope-intercept form

the slope-intercept form is
y=3x+1