Calculate pitch for projectile from distance

Hey guys, trying to figure out the correct way to calculate the pitch of my spawned projectile class to hit a given world location. This is for AI Character to throw grenades…
Any input would be awesome! Thank you!

I figured this out.

Thanks for the explanation, it helped me get this working too.