Gọi S(km) là quãng đường đi được(S>0)
\(\left\{{}\begin{matrix}t_1=\dfrac{S:2}{v_1}=\dfrac{S}{2v_1}=\dfrac{S}{2.15}=\dfrac{S}{30}\\t_2=\dfrac{S:2}{v_2}=\dfrac{S}{2v_2}=\dfrac{S}{2.10}=\dfrac{S}{20}\end{matrix}\right.\)
\(v_{tb}=\dfrac{S_1+S_2}{t_1+t_2}=\dfrac{S}{\dfrac{S}{30}+\dfrac{S}{20}}=\dfrac{S}{S\left(\dfrac{1}{30}+\dfrac{1}{20}\right)}=\dfrac{1}{\dfrac{1}{12}}=12\left(km/h\right)\)