First, the time in air:
h=visin45*time -1/2 g time^2
so when does the arrow return to base height?
0=visin45*time-1/2 g t^2
0=(visin45-1/2 g t)t
or time in air is 2*vi*sin45/g
height: when is vv=0?
vv=visin45-gt which is zero at
time=vi*sin45/g
hmax=vi*sin45*vi*sin45/g-1/2 g (visin45/g)^2 or
hmax=1/2 (vi*sin45/g)^2
and so on. for the other angles, put those numbers in and see, the only variable is the sine of the angle.