A particle travels half the distance with a velocity of 6 m/s. The remaining half distance is covered with a velocity of 4 m/s for half the time and with a velocity of 8 m/s for the rest of the half time. What is the velocity of the particle averaged over the whole time of motion?