To solve this problem we will apply the concepts related to the Force of gravity given by Newton's second law (which defines the weight of an object) and at the same time we will apply the Hooke relation that talks about the strength of a body in a system with spring.
The extension of the spring due to the weight of the object on Earth is 0.3m, then
The extension of the spring due to the weight of the object on Moon is a value of , then
Recall that gravity on the moon is a sixth of Earth's gravity.
We have that the displacement at the earth was , then
Therefore the displacement of the mass on the spring on Moon is 0.05m