Which function is graphed below ?

ANSWER
Option B is correct
EXPLANATION
On the interval,
[tex]x \: < \: 2[/tex]
The function is a straight line graph with x-intercept
[tex]x = 1[/tex]
and y-intercept
[tex]y = - 2[/tex]
The equation of this line is
y=2x-2
On the interval, 2≤x≤5,
The equation is the constant function, y=4
On the interval x>5,
The equation is y=x+1
The correct choice is B.