32*t^2/2 = h - a
16*t^2 = h - a
t^2 = (h-a)/16

finally

t = sqrt((h-a))/4

lol algebraments