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:
![m=(y_2-y_1)/(x_2-x_1)=(-2-0)/(0+4)=(-2)/(4)=-(1)/(2)](https://img.qammunity.org/2023/formulas/mathematics/college/nad0dxuh9nhtag8sgo53h69ftr1q68l74z.png)
the general equation is given by:
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
And then the can find the intercept on this way using the point x= -4 and y=0, replacing in the equation we got:
![0=-(1)/(2)\cdot(-4)+b](https://img.qammunity.org/2023/formulas/mathematics/college/g1lka9u56oorhj9v75rp0occs6vpjn2gpj.png)
b = -2
And the equation would be given by:
![y=-(1)/(2)x-2](https://img.qammunity.org/2023/formulas/mathematics/college/8vx1b4b2qgotbvwvhzjbp4gr4akczaijly.png)