Answer:
The correct option is B.
Explanation:
The slope of a line is constant.
If a line passes through two points then the slope of the line is

It is given that the line passes through (-2,7) and (a,2).
Using the above formula the slope of the line is


It is given that the slope of the line is -5. Substitute m=-5 in the above equation.

On cross multiplication we get

Divide both sides by -5.

Subtract 2 from both the sides.


The value of a is -1. Therefore the correct option is B.