When three points A, B and C are collinear,
slope of line joining any two points (say AB) = slope of line joining any other two
points (say BC).
Slope of the line passing through points (x1,y1) and (x2,y2) = y2−y1x2−x1
Slope of the line passing through (1,2) and (12,3)= Slope of line passing through (12,3) and (0,k)
3−212−1=k−30−12
1−12=k−3−12
On solving, k=4