The period of a simple harmonic oscillator is given by
Then, if k = 5 and the period has to be 6 seconds, we can find the mass m as:
NOTE: as T is in seconds, we assume standard units for the constant k. Then, the mass is in kg.
Answer: the mass has to be approximately 4.56 kg.