Which function is graphed below?


We have function f(x) = 2x - 2 for x<2.
y-intercept is -2 and slope is rise/run = 2/1.
For x < 2 we have a hollow dot for less than sign.
f(x) = 4 for 2<=x<=5 and
We have a horizontal for y=4 and we have solid dot on both end for less than or equal and greater than or equal to sign.
f(x) = x+1 for x>5.
We have slope rise/run = 1/1 and we have a hollow dot for greater than sign.
Therefore, second option is correct option.