Solution:-
Let us assume the point of intersection of CD and line be the point Q(a, b)
From the question it is given that, line divides the line segment CD are in the ratio 2: 5,
So, CQ: QD
So, Point C become
D become
Then, the coordinates of Q are,
Since Q(a, b) lies on the line ,
Where,
Therefore, value of k is.