The x-intercept of -2 gives us an idea that point (-2,0) if found along the line. The y-intercept of -1, tells us that point (0,-1), this also tells us that b = -1.
Now that we have two points, we can solve for slope m
[tex]\begin{gathered} m=\frac{y_2-y_1}{x_2-x_1} \\ \text{Given two points} \\ (-2,0)\rightarrow(x_1,y_1) \\ (0,-1)\rightarrow(x_2,y_2) \\ \\ \text{Substitute} \\ m=\frac{y_2-y_1}{x_2-x_1} \\ m=\frac{-1-0}{0-(-2)} \\ m=-\frac{1}{2} \end{gathered}[/tex]Now that we have both m and b. Substitute these values to the slope intercept form
[tex]\begin{gathered} \text{Slope intercept form is} \\ y=mx+b \\ \text{where} \\ m\text{ is the slope} \\ b\text{ is the y-intercept} \\ \\ \text{Substitute the values from before and we get} \\ y=-\frac{1}{2}x-1 \end{gathered}[/tex]