Step-by-step explanation:
If you are given to different points on a slope you can find the slope by putting in the equation of
(y2-y1)/(x2-x1)
then pick one of the two points and put it in the point-slope formula with the new founded slope
y-y1=m(x-x1)
and then solve for y to get into the form of
y=mx+b m being the slope and b being the y-intercept
-If you are given the slope and just one intercept then just simply put it in the point-slope intercept
Example
Say you're given (-2,-2) and (4,1)
find the slope
x1=-2 y1=-2 and x2=4 y2=1
(1-(-2))/(4-(-2))
=3/6=1/2 this is the m
now put it in the point slope form
y-(-2)=1/2(x-(-2))
y+2=1/2x+1
-2 -2
y=1/2x-1