Step 1: Use the SHM equation form
\[
F = -ky \Rightarrow -3y = -ky \Rightarrow k = 3\, \text{N/m}
\]
Step 2: Time period of SHM:
\[
T = 2\pi \sqrt{\frac{m}{k}} \Rightarrow \pi = 2\pi \sqrt{\frac{m}{3}}
\Rightarrow \frac{1}{2} = \sqrt{\frac{m}{3}} \Rightarrow \frac{1}{4} = \frac{m}{3} \Rightarrow m = \frac{3}{4} = 0.75\,\text{kg} = 750\,\text{g}
\]