Two balls are thrown

 

The time of flight on level ground is twice the time for a ball to drop vertically from maximum height. Since v = at when u = 0, the time of flight equals 2uy/g.