Answer with Explanation:
We are given that


Spring constant,


a.Speed of ham before collision

Collision is inelastic
According to law of conservation of momentum



Kinetic energy of masses=Spring potential energy at maximum distance



Substitute the values

1 m=100 cm
b.Time period,

