Write the equation of the piecewise function. Algebra 2

Answer:
C. [tex]y=\begin{cases}2-x&x<0\\5-3x&x\ge 0\end{cases}[/tex]
D. [tex]y=\begin{cases}-2&x<-3\\4&x>-3\end{cases}[/tex]
Step-by-step explanation:
C. The line to the left of x=0 has a slope of -1 and a y-intercept of 2. That portion of the function does not include x=0. The line to the right of x=0 has a slope of -3 and a y-intercept of 5. That portion of the function includes the case x=0.
[tex]\boxed{y=\begin{cases}2-x&x<0\\5-3x&x\ge 0\end{cases}}[/tex]
__
D. The line to the left of x=-3 is y=-2; the line to the right of there is y=4. The function is not defined at x=-3.
[tex]\boxed{y=\begin{cases}-2&x<-3\\4&x>-3\end{cases}}[/tex]