Find the point of intersection of the line and the line segment. Then use the distance formula twice. Try the details yourself and let us know if and where you get stuck.
Find the point of intersection of the line and the line segment. Then use the distance formula twice. Try the details yourself and let us know if and where you get stuck.