The two given points are A = (-2,7) and B = (-2,-2). Note how the x coordinates of both points are the same at -2. This suggests that we have a vertical line through A and B. The slope of any vertical line is undefined. So the answer will not be in the format y = mx+b simply because m is undefined.
The answer will be either in the form x = k or Ax+By = C (with B = 0). Unfortunately, none of your answer choices reflect this.
Choice A and B are in the form y = mx+b, so we can rule them out.
Choice D can be written into y = mx+b form, so we can rule that out too.
The only thing left is choice C. This is likely the answer, but I think there's a typo somewhere.