they will cover equal displacement in y direction and time is also same to reach the groud .
therefore
for projectile A, y = 0*t + 1/2*g*t^2
for projectile B , y = -Vbsintheta *t - 1/2 g*t2
from equating these two here you will get the value of t