rember 1 thing
for any such problem in kinamitcs u need to 1st u first need to wright the equation
sf=si+ut +(1/2)gt2
remember this is a vector equation
so here u have 3 cases
it is clear that t=root 2h/g
apply the above equation
take ground as orisin
so sf=0 si=h u=u a=-g
so 0=h+ut1+(1/2)gt12 ______________________(1)
appling the same equation
so sf=0 si=h u=-u a=-g
so 0=h-ut2-(1/2)gt22 ______________________(2)
multiply t2 with eq1 and add with t1 multiplied with eq2
t2(eq 1) + t1 (eq2)
and take ( t1 +t2) common and solve to get the answer
PLZ APPROVE IF useful in case of any doubts ask in ans box