google
distance between skew lines
and you will see various discussions and videos on the topic.
Formulate a general method for finding the distance between two skew (i.e., non intersecting) line in space. (Hint: the shortest line segment joining the two skew lines will be perpendicular to both of them).
2 answers
working