Here we have two points given which are
p1 (0,2) and p2(-5,-1) .
Since in p1, when x=0, y=2, so the y intercept, b is 2 .
Now we need to find the slope and for that we use the slope intercept form, which is


So we have slope, m =3/5 and y intercept, b =2
Now we use the slope intercept form which is y =mx+b and substitute the values of m and b. And on doing so , we will get
