Which shows the correct relation between time of flight T and maximum height H ?

Which shows the correct relation between time of flight T and maximum height H ?

A. H=gT2/8
B. H=8T2/g
C. H=8g/T2
D. H=gT2