Let the distance be D, the boat's speed in still water be B, and the stream's speed be S, so the downstream speed is D/t1 = B + S and the upstream speed is D/t2 = B - S. By adding these two equations, we get (D/t1) + (D/t2) = 2B, which simplifies to B = (D/2)(1/t1 + 1/t2). The time taken by the boat to cover distance D in still water is T = D/B, which becomes 2 / (1/t1 + 1/t2) after substituting B. Simplifying this fraction yields the harmonic mean formula, 2 * t1 * t2 / (t1 + t2). The result is \dfrac{2 t_1 t_2}{t_1+t_2}.