Question: Equation of a plane (10)

Please write for me another code for the following problem:
Write the equation of the plane (P) passing through the line (d): x = -t -1, y = t + 3, z = 2*t + 2, (P) cuts the axis Ox at A and the axis Oy at B (A, B different form origin O) so that OA = 2OB.

This is my code

restart:

f:=(x,y,z)->a*x+b*y+c*z+d:

A:=f(m,0,0):

B:=f(0,n,0):

C:=f(-1,3,2):

v:=-a+b+2*c:

sol:=solve([A=0,B=0,C=0,v=0,abs(m) = 2*abs(n),a^2+b^2+c^2=1],[a, b, c, d, m, n]):

for i to nops(sol) do subs(sol[i],f(x,y,z)=0) end do;


My code must solve a system of equations with five unknowns a, b, c, d, m, n. 

Please Wait...