The equation is of the form y = mx+b where m=solope and b=y-intercept, so we have the points:
P1(-3, 2) and P2(0, -1)
Then for slope:
[tex]m=\frac{y2-y1}{x2-x1}=\frac{-1-2}{0-(-3)}=\frac{-3}{3}=-1[/tex]For y-intercept:
[tex]\begin{gathered} y=mx+b \\ -1=-1(0)+b \\ -1=0+b \\ b=-1 \end{gathered}[/tex]Therefore the equation is:
[tex]y=-x-1[/tex]