A baseball thrown at an angle of 45 degrees above the horizontal strikes a building 18 m away at a point 8 m above the point it is thrown. Find the time taken by the ball to hit the building.

Can someone please show me how to set the problem up?

To solve this problem, we can break it down into two separate motions: the horizontal motion and the vertical motion of the baseball.

First, let's consider the horizontal motion. We are given that the baseball strikes the building 18 m away. Since there is no acceleration in the horizontal direction, the speed of the baseball remains constant throughout its flight. Let's denote this speed as v.

Since the horizontal motion is unaffected by gravity, the time taken by the ball to travel the horizontal distance of 18 m can be found using the formula:

time = distance / speed

In this case, the time taken by the ball to reach the building horizontally is:

time_horizontal = 18 m / v

Next, let's consider the vertical motion. We are given that the ball strikes the building 8 m above the point it is thrown, which means it has a vertical displacement of -8 m (negative because the ball is moving downward).

To analyze the vertical motion, we need to consider the effects of gravity. The ball is subject to a constant acceleration due to gravity, which we will denote as g and is equal to approximately 9.8 m/s^2.

Using the kinematic equation for vertical motion:

displacement = initial velocity * time + (1/2) * acceleration * time^2

Since the ball is thrown with an initial velocity and is subject to gravity, the initial velocity component in the vertical direction can be found using the initial velocity in the y-direction (Vy0) and the launch angle.

The initial velocity in the vertical direction can be calculated using trigonometry:

Vy0 = V * sinθ

where V is the initial velocity of the ball and θ is the launch angle (45 degrees).

Plugging in the values, we have:

-8 m = Vy0 * time + (1/2) * g * time^2

Simplifying this equation, we get:

-8 m = (V * sinθ) * time + (1/2) * g * time^2

Now, we have two equations with two unknowns: time and the initial velocity, V. We can solve these equations simultaneously to find the values.

Finally, to find the time taken by the ball to hit the building, you can substitute the value of time from the horizontal motion into either of the vertical motion equations and solve for time.