"A projectile is launched at 517m/s at 50 degrees from the horizontal on top of a building 150m tall. What is the highest point it will reach?"

Need to show all work. Thanks!

Find the vertical component of velocity

velocityvertical= 517*sin50

Now, the vertical velocity at the top is zero

Vtop^2= Vinitialvertica^2 - 2*g*height