B. y = x + 2
Step-by-step explanation:
By the given graph,
The line is passes through the points (-2, 0) and (0, 2),
Since, the equation of a line passes through and is,
Hence, the equation of the line shown in the graph,
Therefore, Option 'B' is correct.