%write the unit vector associated with each force vector
rAC=[-6,6,-5]
eAC=rAC/norm(rAC)
rAD=[-6,2,5];
eAD=rAD/norm(rAD);
rAO=[-6,-2,0];
eAO=rAO/norm(rAO);
%write the known tension TAB as a vector.
rAB=[6,1,0];
TAB=50*rAB/norm(rAB);
%set the equations up in Ax=b form, and solve.
b=-transpose(TAB);
A=[eAC(1),eAD(1),eAO(1);eAC(2),eAD(2),eAO(2);eAC(3),eAD(3),eAO(3)]
x=A\b
%x is a column vector - based on the way that I chose to set up A and b, the first component of x is TAC, the second
%component is TAD, and the third component is TAO.