This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $f=\frac1{2l}\sqrt{\frac T\mu}$ and $T=Mg$, so $f\propto\sqrt M$. $\frac{m}{180}=\left(\frac{50}{30}\right)^2=\frac{25}9\Rightarrow m=500$ g. Answer: 500.