I have looked at this question.
r_1=t(10,8,-1)
r_2=(200,100,-25)+s(5,7,Z)=(200+5s,100+7s-25+sZ)
d=|r_1-r_2|=sqrt((200+5s-10t)^2+(100+7s-8t)^2+(25+sZ+t)^2)
expand and simplify then differentiate with respect to s,t,Z and solve three simultaneous equations. Not a typical A level question. What module is it?