A person travels along a straight road for half the distance with velocity v1 and the remaining half distance with velocity v2 The average velocity is given by
2v1v2v1+v2
As the total distance is divided into two equal parts, we have
vavg=Total distanceTotal time
=dd2v1+d2v2
=2v1v2v1+v2