Answer:
D
Step-by-step explanation:
When x = 0, y = -2.
When x = 2, y = 0.
So the function of the graph is y = x - 2, which is option D.