We can also see it this way:
Noting that point in the form (x, y)
(-1, 6) and (7, a) . x1 = -1, y1 = 6, x2 = 7, y2 = a
Gradient , m = (y2- y1) / (x2 - x1). m =6.
Substituting:
6 = (a - 6) / (7 - -1)
6 = (a -6) / (7+1)
6 = (a -6) /8 Cross Multiplying
48 = a -6.
48 +6 = a.
54 = a.
Therefore a = 54.
I hope this helps.