Answer:
The answer to your question is:
 f(x) =  - x - 4 if  (-∞, -3)
 2x + 6 if [-3, ∞)
Explanation:
Find the equations of the two lines
Blue line
A (-4, 1)
B (-6, 3)
 m = (3 - 1) / (-6 + 4)
 m = 2 / -2
 m = -1
 (y - 1) = -1(x + 4)
 y - 1 = -x - 4
 y = - x - 4 + 1
 y = - x - 4 Interval (-∞, -3)
Red line
C(-2, 2)
D(0, 6)
 m = (6 - 2) / 0 + 2)
 m = 4 / 2
 m = 2
 (y - 2) = 2(x + 2)
 y - 2 = 2x + 4
 y = 2x + 4 + 2
  y = 2x + 6 Interval [-3, ∞)