When the ball will reach the highest point then the final velocity will be zero.
Initial velocity = u m/sec, final velocity = 0 m/sec, acceleration=−gm/sec2
v=u+at⇒0=u−gt1
t1=gu
Initial velocity will be zero as the ball is at the highest point.
v=u+at⇒3u=0+gt2
t2=g3u
Therefore total time is: t=gu+g3u=g4u