Q.
Two blocks of masses $3 \,kg$ and $6\, kg$ rest on a horizontal smooth surface. The $3 \,kg$ block is attached to a spring with a force constant $k=900 \,Nm ^{-1}$ which is compressed $2\, m$ from the equilibrium position as shown in figure. The $6 \,kg$ mass is at rest at $1\, m$ from mean position. $3\, kg$ mass strikes the $6\, kg$ mass and the two stick together :

Oscillations
Solution: