The period of a simple harmonic oscillator is given by
![T=2\pi\sqrt[]{(m)/(k)}](https://img.qammunity.org/2023/formulas/physics/high-school/59p5w267zpcbiffehn6l28fg1lc6criikc.png)
Then, if k = 5 and the period has to be 6 seconds, we can find the mass m as:
![\begin{gathered} T=2\pi\sqrt[]{(m)/(k)} \\ (T)/(2\pi)=\sqrt[]{(m)/(k)} \\ ((T)/(2\pi))^2=(m)/(k) \\ m=k\cdot((T)/(2\pi))^2 \\ m=5\cdot((6)/(2\pi))^2 \\ m\approx5\cdot(0.955)^2 \\ m\approx5\cdot0.912 \\ m\approx4.56 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/kw5zpd2pbqis8swjxy7cwmav5lk4vuu5bg.png)
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.