Answer on Question#38391, Math, Vector Calculus
The picture of movement looks approximately like this:

b=3km , c=10km , a−?
The angle between b and c is 45 degrees. Hence, let us use cosine theorem to calculate a :
a2=b2+c2−2bcsin(45)=32+102−2⋅3⋅10⋅21=109−302 . Thus, a=109−302≈8.159km .