B
1) In this question, we can see piecewise functions. So the rule of the function tells us that

In other words, for any value lesser than 2 y=x. For values greater than or equal to 2, y=2
2) Let's examine which graph falls under this rule. Examining each of those graphs, we can state that the graph that presents this rule is graph B