In order to write this equation, you must first graph the points. The x-intercept of -2 means the point on the graph is at (-2,0). The y-intercept of -1 means the point on the graph is at (0,-1). To get our slope, we must first subtract the x-intercept from the y-intercept.
(-2,0)
-(0,-1)
=(-2,-1)
Rise (y) over Run (x)
Our slope would be 1/2.
Now that we have our slope, let's get our equation set up. y = mx + b
y = 1/2x + b
Now we plug in one of our coordinates to get our "b".
-1 = 1/2(0) + b
-1=b
Now our line equation is y = 1/2x - 1
Hope this helped!
-TTL