Let us draw a sketch to understand the situation
We will use some rules here

Since the horizontal distance is 50 yards
Since 1 yard = 3 feet, then

We will use it to find the time t

Now, we will find the vertical distance (h) by using this rule

Note that: a is the acceleration of gravity which is 32 ft/s^2
We will substitute t by its value

We can simplify it by using sin34/cos34 = tan34, and 1/cos34 = sec34
But I will put it on the calculator to find the final answer

Since the height of the crossbar is 10 feet, then
Sanjay's attempt successful