Step 1: For a projectile from a height $h$, the time of flight $T$ is fixed by the initial vertical velocity component $u_y$ and by $h$ alone ($h$ is $400\ m$ for both).
Step 2: Same $T$ therefore requires the same $u_y$ for A and B. With the angle taken from the vertical, $u_{yA}=v_A\cos45^\circ$ and $u_{yB}=v_B\cos60^\circ$.
Step 3: Equating, $v_A\cdot\frac{1}{\sqrt2}=v_B\cdot\frac12$, so $v_A:v_B=1:\sqrt2$. Option (3).