Answer:
Sound and light are similar in that both are forms of energy that travel in waves. They both have properties of wavelength, freqency and amplitude. Here are some differences: Sound can only travel through a medium (substance) while light can travel through empty space.
In the first case, the force acting on the spring is the weight of the mass:

This force causes a stretching of

on the spring, so we can use these data to find the spring constant:

In the second case, the first mass is replaced with a second mass, whose weight is

And since we know the spring constant, we can calculate the new elongation of the spring: