The general equation for a straight line is y = mx+c, where m is the gradient/ slope, so m = -5. The first thing we need to do is find c, which we do by plugging in the x and y values that we already know: y = 7 and x = -2
7 = -5*(-2) + c
7 = 10 + c
c = 7-10 = -3
Now, we have the general equation of y = -5x -3 and we can use this to find a.