I'd start off by writing Newtons law for the projectile
F=ma
since the force is gravity we have F=mg and so for the y axis
a=g
you can either solve this differential equation or look up the solution, it should be in any intro physics textbook, and you'll find that the y position of the particle is;
y=a_0+a_1t+\frac{g}{2} t^2
and for the x position you'll find;
x=b_0+b_1t
you'd then set a_0 = b_0 = 0 to make the projectile be launched from the origin of co-ordinates
you set the velocity as V Sin and V Cos, which gives you;
y=V Cos( \theta ) t + \frac{g}{2} t^2
x=V Sin( \theta )t
so you now have to equations which you can solve, given some time you want to hit the target at, for V and theta
Tan( \theta )=\frac{x}{y-\frac{g}{2}t^2}
\theta = arctan(\frac{x}{y-\frac{g}{2}t^2})
where x and y are the x and y of the target
and you can substitute your theta back into find the V
if you already had the angle theta (I couldn't tell from your OP) you can put it in the tan equation and solve for t, then sub that into the x equation to get v
good luck!