Solution:
Concept: Three points A, B, C are collinear (lie on one straight line) exactly when the triangle ABC has zero area, that is, when
x1(y2−y3)+x2(y3−y1)+x3(y1−y2)=0
Step 1 — Write the condition. We take (x1,y1)=(7,a), (x2,y2)=(−5,2), (x3,y3)=(3,6) and set the bracket equal to zero:
7(2−6)+(−5)(6−a)+3(a−2)=0
Step 2 — Expand. We multiply out each term:
−28−30+5a+3a−6=0
Step 3 — Solve for a. We collect the terms:
8a−64=0
a=8
Step 4 — Check. We compare the slopes of the two joins:
slope from (−5,2) to (3,6)=3+56−2=21
slope from (3,6) to (7,8)=7−38−6=21
The slopes are equal, so the three points lie on one line.

Therefore, a=8.