Answer
$ y=-x+1$ when $0\leq x\lt 1$
$ y=-x+2$ when $1\leq x\leq 2$
Work Step by Step
Pay attention to the dot or circle of the x-values. Dots indicate that the point is included, whereas circle indicate that the point is excluded.
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.