Solution
For the solid line we can select two points:
(0,2) and (1,0)
We can calculate the slope and we have:
Then we can find the intercept and we got:
0= -2*1+ b
b =2
Then the equation is:
y= -2x +2
For the dashed line we can select (0,1) and (1,2) then the slope is:
The intercept is:
2= 1*1 +b
b=1
Then the equation is:
y= x +1