Let A(-2, -1, 3), B(0, 1, 4) be two point and
(d): x = -t-2, y = t+1, z = -t-1 be a line.
Find coordinates point M lies on (d) so that area of the triangle ABM equal to 3*sqrt(5).
This is my code
restart; with(LinearAlgebra):
A:=: B:=: M:=:
u:=A-B: v:=A-M:
T:=CrossProduct(u,v):
sol:=solve(1/2*Norm(T,2)=3*sqrt(5),{t});
for i from 1 to 2 do print('M'[i]=(subs(op(sol[i]), M[1]), subs(op(sol[i]), M[2]),subs(op(sol[i]), M[3]))) end do;