Using the two - point from
y−y1y2−y1=x−x1x2−x1
y−2−2−2=x−4−8−4
y−2−4=x−4−12
−12(y−2)−4 = x - 4
3(y -2) = x -4
3y - 6 = x - 4
3y = x - 4 + 6
3y = x + 2...
By comparing the equations;
3y = px + , p = 1