A particle starts moving along a line from rest and comes to rest after moving distance d. During its motion, it had a constant acceleration f over 2/3 of the distance and covered the rest of the distance with constant retardation. The time taken to cover the distance is: