A line passes through the point (–2, 7) and has a slope of –5. What is the value of a if the point (a, 2) is also on the line?