From the top of a tall building, a gun is fired. The bullet leaves the gun at a speed of 340 m/s, parallel to the ground. As the drawing shows, the bullet puts a hole in a window of another building and hits the wall that faces the window. (y = 0.42 m, and x = 6.4 m.) Using the data in the drawing, determine the distances D and H, which locate the point where the gun was fired. Assume that the bullet does not slow down as it passes through the window.

For H: 23.31m
and D: 734.76m
however these answers are wrong and I don't know what I'm doing wrong, help please!

To solve this problem, we can use the kinematic equations of motion to determine the distances D and H.

First, let's assume the point where the gun was fired is located at coordinates (x_0, y_0). The bullet, moving parallel to the ground, will travel a horizontal distance D and a vertical distance H before hitting the wall.

Let's break down the problem into horizontal and vertical components:

Horizontal Motion:
The horizontal distance D is equal to the horizontal component of the bullet's velocity multiplied by the time it takes to hit the wall.

D = vx * t

Vertical Motion:
The vertical distance traveled by the bullet can be calculated using the equation:

H = y - y_0 + (1/2) * g * t^2

where g is the acceleration due to gravity (approximately 9.8 m/s^2).

We should be able to find t using the vertical motion equation, and then substitute this value back into the horizontal motion equation to solve for D. However, we don't have enough information to directly solve for t.

To determine the time it takes for the bullet to hit the wall, we need to find the total flight time of the bullet from the moment it was fired until it hits the wall. To do this, we'll use the vertical motion alone.

Setting the initial vertical position of the bullet at y_0 = 0 (at the top of the building), we can calculate t using the equation:

0.42 m = 0 + (1/2) * g * t^2

Solving for t in this equation will give us the total flight time.

t = sqrt((2 * y) / g)

Now that we have t, we can substitute it back into the horizontal motion equation to find D:

D = vx * t

Given that the velocity of the bullet, vx, is 340 m/s, we use this value along with the calculated t to find D.

D = 340 m/s * t

Finally, to find H, we can use the calculated t and substitute it into the vertical motion equation:

H = y - y_0 + (1/2) * g * t^2

Using the given value of y = 0.42 m, and solving for H using t, we can determine the correct value of H.

Note: It is important to double-check the given data and equations to ensure accurate calculations.