Solution
For this case we have two points given :
(-4,0) and (0,-2)
x1= - 4
y1 = 0
x2= 0
y2= -2
Then we can find the slope on this way:

the general equation is given by:

And then the can find the intercept on this way using the point x= -4 and y=0, replacing in the equation we got:

b = -2
And the equation would be given by:
