solution scribbles

> A :=[0,0]; B:=[b1,b2]; C:=[1,0];

[Maple Math]

[Maple Math]

[Maple Math]

> X := t*B;

[Maple Math]

> Y := s*B+(1-s)*C;

[Maple Math]

> eqn := evalm(w*X + (1-w)*Y ) ;

[Maple Math]

> sol :=solve(eqn[2],{w});

[Maple Math]

> Z :=simplify(subs(sol,evalm(eqn)));

[Maple Math]

> drawit := (b1,b2,t,s) ->display([
plot([[0,0],[b1,b2],[1,0],[0,0]],color=red,thickness=3),
plot([t*[b1,b2], s*[b1,b2]+(1-s)*[1,0],[-t*(-1+s)/(t-s), 0] ],color=black,thickness=3)],scaling=constrained) ;

[Maple Math]
[Maple Math]
[Maple Math]

> drawit(-1,1.3,.7,.4);