Answer:
![a)\ f(x)=\left\{\begin{array}{cccc}-x+2&for&x\in(0,\ 2]&/0](https://tex.z-dn.net/?f=a%29%5C%20f%28x%29%3D%5Cleft%5C%7B%5Cbegin%7Barray%7D%7Bcccc%7D-x%2B2%26for%26x%5Cin%280%2C%5C%202%5D%26%2F0%3Cx%5Cleq2%2F%5C%5C%5C%5C-%5Cdfrac%7B1%7D%7B3%7Dx%2B%5Cdfrac%7B5%7D%7B3%7D%26for%26x%5Cin%282%2C%5C%205%5D%26%2F2%3Cx%5Cleq5%2F%5Cend%7Barray%7D%5Cright)
![b)\ f(x)=\left\{\begin{array}{cccc}-3x-3&for&x\in(-1,\ 0]&/-1](https://tex.z-dn.net/?f=b%29%5C%20f%28x%29%3D%5Cleft%5C%7B%5Cbegin%7Barray%7D%7Bcccc%7D-3x-3%26for%26x%5Cin%28-1%2C%5C%200%5D%26%2F-1%3Cx%5Cleq0%2F%5C%5C%5C%5C-2x%2B3%26for%26x%5Cin%280%2C%5C%202%5D%26%2F0%3Cx%5Cleq2%2F%5Cend%7Barray%7D%5Cright)
Step-by-step explanation:
These are graphs of piecewise functions.
Each part is a graph of the linear function.
The slope-intercept form of an equation of a line:

<em>m</em><em> - slope</em>
<em>b</em><em> - y-intercept → (0, b)</em>
The formula of a slope:

========================================
<h2>
a)</h2>
Part 1:
Points (0, 2) → <em>b = 2</em>, and (2, 0).
Calculate the slope:

Put the value of <em>m</em> and <em>b</em> to the equation of a line:

Part 2:
Points (2, 1) and (5, 0).
Calculate the slope:

Put the value of the slope and the coordinates of the point (5, 0) to the equation of a line:

<em>add 5/3 to both sides</em>

Therefore we have:

The domain of the function is (0, 2] and (2, 5].
Formula of the piecewise function:
![f(x)=\left\{\begin{array}{cccc}-x+2&for&x\in(0,\ 2]&/0](https://tex.z-dn.net/?f=f%28x%29%3D%5Cleft%5C%7B%5Cbegin%7Barray%7D%7Bcccc%7D-x%2B2%26for%26x%5Cin%280%2C%5C%202%5D%26%2F0%3Cx%5Cleq2%2F%5C%5C%5C%5C-%5Cdfrac%7B1%7D%7B3%7Dx%2B%5Cdfrac%7B5%7D%7B3%7D%26for%26x%5Cin%282%2C%5C%205%5D%26%2F2%3Cx%5Cleq5%2F%5Cend%7Barray%7D%5Cright)
============================================================
<h2>b)</h2>
We solve the same as in a) in Part 1
Part 1:
(-1, 0), (0, -3) → <em>b = -3</em>


Part 2:
(0, 3) → <em>b = 3</em>, (2, -1)


Domain: (-1, 0] and (0, 2].
![f(x)=\left\{\begin{array}{cccc}-3x-3&for&x\in(-1,\ 0]&/-1](https://tex.z-dn.net/?f=f%28x%29%3D%5Cleft%5C%7B%5Cbegin%7Barray%7D%7Bcccc%7D-3x-3%26for%26x%5Cin%28-1%2C%5C%200%5D%26%2F-1%3Cx%5Cleq0%2F%5C%5C%5C%5C-2x%2B3%26for%26x%5Cin%280%2C%5C%202%5D%26%2F0%3Cx%5Cleq2%2F%5Cend%7Barray%7D%5Cright)