A ball of mass 400 gm is dropped from a height of 5 m. A boy on the ground hits the ball vertically upwards with a bat with an average force of 100N so that it attains a vertical height of 20 m. Find the time for which the ball remains in contact with the bat.