The graph represents the piecewise function

Hence, we have:
f(x)= 2x-1 when x ≤ -1
x+4 when x ≥ 1
The graph is a straight line that passes through (-1,-3) and (-2,-5)
Hence, the equation of line is:
[tex]f(x)-(-3)=\dfrac{-5-(-3)}{-2-(-1)}\times (x-(-1))\\\\\\f(x)+3=\dfrac{-5+3}{-2+1}\times (x+1)\\\\\\f(x)+3=2(x+1)\\\\\\f(x)=2x+2-3\\\\\\f(x)=2x-1[/tex]
The graph is a straight line that passes through (1,5) and (2,6)
Hence, the equation of line is:
[tex]f(x)-5=\dfrac{6-5}{2-1}\times (x-1)\\\\\\f(x)-5=x-1\\\\\\f(x)=x-1+5\\\\\\f(x)=x+4[/tex]