A particle retards from a velocity v0 while moving in a straight line. If the magnitude of deceleration is directly proportional to the square root of the speed of the particle, find its average velocity for the total time of its motion.