We have
Since the first line passes through the point (1, 2, 4) and has direction ratios proportional to 2, 3, 6, its vector equation is
Also, the second line passes through the point (3, 3, 5) and has direction ratios proportional to 4, 6, 12.
Its vector equation is
These two lines pass through the points having position vectors and are parallel to the vector .
Now,
and
The shortest distance between the two lines is given by