Hey there!
Graphing this will be similar to graphing slope intercept equations (y=mx+b).
As you can see, we have a slope of 1 and a y-intercept of two when you look at the equation and match it up with the slope intercept form Let's look at each answer option and see which one fits.
--------------------------------------------------------------------------------------------
GRAPH A
Graph A does have a y-intercept of two. This means that the line crosses the y-axis at two units up from the origin. However, it has a negative slope because it is going downwards rather than upwards. The slope of our function is positive, so Graph A does not match.
--------------------------------------------------------------------------------------------
GRAPH B
Graph B does have a positive slope of one (a slope of one means that it goes diagonally across every small square on the grid), but it's y-intercept is -2 because it hits the y-axis at 2 down from the origin. Therefore, Graph B does not match this function.
--------------------------------------------------------------------------------------------
GRAPH C
Graph C both goes downward (negative slope) and it hits the y-axis at -2 instead of 2 (wrong y-intercept). Therefore, Graph C does not match the function.
--------------------------------------------------------------------------------------------
GRAPH D
Graph D has a y-intercept of 2 and it has a positive slope of one! Therefore, Graph D does match this function.
--------------------------------------------------------------------------------------------
The correct answer is Graph D.
I hope that this helps! Have a wonderful day!