Please walk me through so I can get a better understanding please

From the given figure we can see
1. A-line with a negative slope intersects the y-axis at (0, 1)
It has a closed-end at x = 1
Its slope is -2
Then its equation is
[tex]y=-2x+1,x\leq1[/tex]2. A-line with a negative slope intersects the x-axis at (2, 0)
It has an open-end at x = 1
Its slope is -1
Then its equation is
[tex]y=-x+2,x>1[/tex]Then the answer is
[tex]y=\begin{cases}{-2x+1,x\leq1} \\ {-x+2,x>1} \\ {}\end{cases}[/tex]The answer is a