In a pinball game, a compressed spring with spring constant 1.2x10^2 N/m fires an 82 g pinball. The pinball first travels horizontally and then travels up

an inclined plane in the machine before coming to rest. The ball rises up the ramp through a vertical height of 3.4 cm. Determine the distance of the
spring’s compression.

I know that Ee = Eg, but I don't know where to go from there.

1 answer

the energy stored in the spring equals the gravitational potential of the ball

1/2 k x^2 = m g h
... 1/2 * 1.2E2 * x^2 = .082 * 9.81 * .034 ... x is in meters