Artificial intelligent assistant

Puzzle relation with geomtry An army $40$ km long is moving at constant speed. A horseman takes a message from the rear end of the army to the general in the front end of the army and returns back to the rear end of the army (moving with constant speed). During this time, the army moves a total of $40$ km. What total distance did the horseman travel? * * * To me, we can draw place-time $(x,t)$-plane. HINT ![Army&HorseRider]( The sketch might help if velocity $V$ is taken properly. Note the horseman's track. (Sketch would be moved to answers area later.)

Let indicate with $v_a$ the speed of the army, by $v_h$ the speed of the horseman, then for the travel in front we have

* the position of the general is: $x_g=40+v_at$

* the position of the horseman is: $x_h=v_ht$




and

$$x_g=x_h\implies t_1=\frac{40}{v_h-v_a}$$

For the travel to return we have

* the position of the rear: $x_r=40-v_at$

* the position of the horseman is: $x_h=v_ht$




and

$$x_r=x_h\implies t_2=\frac{40}{v_h+v_a}$$

From the given condition we know that

$$(t_1+t_2)v_a=40$$

that is

$$40\frac{v_a}{v_h-v_a}+40\frac{v_a}{v_h+v_a}=40$$

$$\frac{2v_av_h}{v_h^2-v_a^2}=1 \implies v_h^2-2v_av_h-v_a^2=0 \implies v_h=(1+\sqrt2)v_a$$

and the distance traveled is therefore $40(1+\sqrt2)$ km.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy e3cb7c6e3ef5c7bd9078c46897f6389f