A person travels along a straight road for the first half time with a velocity v1, and the second half time with a velocity v2. Then the mean velocity v is given by
Let for the first half time f, the person travels a distance s1. Hence
For second half time,