\begin{gathered} \frac{{{m_1}}}{{{m_2}}} = \frac{1}{2} \hfill \\ {m_1} + {m_2} = 30 \hfill \\ \end{gathered}