A particle travels half of the distance of a straight journey with speed 6m/s. The remaining part of the distance is covered with speed 2m/s for half of the time of remaining journey and with speed $4m/s$ for the other half of time. The average speed of the particle is: