Harmonic motion problem involving spring constant and suspended masses