Answer: 3.13 m
Step-by-step explanation:
Given
mas of the ball is m=10 kg
The ball rolls down a vertical distance of 5 m
Spring constant of spring is

Here, the potential energy of the ball converted into kinetic energy which in turn converts into elastic potential energy
![\Rightarrow mgh=(1)/(2)kx^2\quad [\text{x=compression in the spring}]\\\\\Rightarrow 10* 9.8* 5=(1)/(2)\cdot 100\cdot x^2\\\Rightarrow x=√(9.8)\\\Rightarrow x=3.13\ m](https://img.qammunity.org/2022/formulas/physics/college/qfxk3keiqb6ylg91jvq5ixximse56tzoa0.png)
Thus, the spring compresses by 3.13 m.