Write out the equations of motion for the two projectiles and solve the set of equations at time t=0 corresponding to the two projectiles being in the same position.

The initial velocity of the first particle is:

and of the second:

The equations of motion are:

and the collision condition gives you:

CB