Hey everyone, i had 2 questions that i can't do for any reason

Question 1: Gandalf the Grey started in the Forest of Mirkwood at a point with coordinates (3, -1) and arrived in the Iron Hills at the point with coordinates (5, 2). If he began walking in the direction of the vector v= 5i+ 1j and changes direction only once, when he turns at a right angle, what are the coordinates of the point where he makes the turn.

For this i got 3.1 and 1.9 but it wasn't right. Also i know that it is dot product as the u*v=0. But i tried it converting the coordinates into unit vectors and solving R(t) and R(s) where (s,t) and than plugging (s,t) back into R(t) and R(s) to get the answer. But it isn't right.

Question 2: The distance d of a point P to the line through points A and B is the length of the component of AP that is orthogonal to AB. so the distance from P=(-5,1,-4) to the line through the points A=(2,-1,-3) and B=(1,-5,-3) is

For this i got 53.94 but it isn't right. i calculated AP and than AB and than used orth = u - proj. but the answer i got isn't right. please can anyone help me

Thanks alot