A cricket ball thrown across a field is at heights h1 and h2 from the point of projection at times t1 and t2 respectively after the throw. The ball is caught by a fielder at the same height as that of projection. The time of flight of the ball in this journey is: