The gravitational force acting on the mass can be given as,
The spring constant of the spring can be given as,
Substitute the known expression,
Substitute the known values,
The work done on the spring can be given as,
Substitute the known values,
Thus, the distance of spring stretched is 0.165 m.