\(\frac{S}{30}+\left(\frac{S}{\frac{3}{30}}+\frac{2S}{\frac{3}{40}}\right)=\frac{1}{2}\)
\(\Leftrightarrow\frac{S}{30}+10S+\frac{80S}{3}=\frac{1}{12}\)
\(\Leftrightarrow S\left(\frac{1}{30}+10+\frac{80}{3}\right)=\frac{1}{12}\)
\(\Leftrightarrow\frac{367S}{10}=\frac{1}{12}\)
\(\Leftrightarrow S=\frac{5}{2202}\)