A body traveling along a straight line traversed first one third of the total distance with a velocity 4 m/s. The remaining part of the distance was covered with a velocity 2 m/s for half the time and with velocity 6 m/s for the other half of time. The mean velocity over the whole time of motion is