The red line has a y-intercept of -4, so the linear equations of choices A and C can be eliminated.
The numerator of the rational expression of choice B will not be zero when x=4, so that choice can be eliminated. (That is, check to see if the point (4, 0) satisfies the equation. It does not.)
The problem requirements are met by the last choice:
d y = x minus 4, over x plus 2
y = x − 4