Solution:
Direction cosines of the line are
Projection of the line segment joining the points on the given line=
The projection of the line segment joining the points and on the line whose direction ratios are is
Direction cosines of the line are
Projection of the line segment joining the points on the given line=