Find the distance between Q = (3, -7, -1) and the line through A = (1, 1, 2) and B = (2, 3, 4).
I'm assuming you know how to calculate distance in 3D if you listened in whatever class you're taking
Find the midpoint of line segment AB
Then find the distance between Q and the midpoint.
I recommend to be more specific in your questions