Please help and thank you

Answer:
A
Step-by-step explanation:
This is a piece wise function. A piece wise function is a function made of more than one function over specific intervals. Here the function is made of two functions: y = x and y = 2.
Using this, option A and D follow the intervals correctly. However, option D has a horizontal line at y = 1 instead of y = 2. Answer choice A is correct.