where is the launch angle.
You'll have two equations in two unknowns which you can solve. My recommendation is to solve the x equation for cos(theta) and the y equation for sin(theta), then use
to get an equation for t. (It's a biquadratic which you can solve for t^2 using the quadratic formula. Then solve for t from there.)
FYI: You will get two angles.