\(\mathrm{C}_{\mathrm{x}} \mathrm{H}_{\mathrm{y}}+\left(\mathrm{x}+\frac{\mathrm{y}}{4}\right) \mathrm{O}_2 \rightarrow \mathrm{xCO}_2+\frac{\mathrm{y}}{2} \mathrm{H}_2 \mathrm{O}\)
From the reaction,
Produced \(\mathrm{CO}_2=\mathrm{x} \mathrm{mol}\)
and produced \(\mathrm{H}_2 \mathrm{O}=\frac{\mathrm{y}}{2} \mathrm{~mol}\)
Given produced \(\mathrm{CO}_2=330 \mathrm{~g}\)
\(\therefore\) moles of \(\mathrm{CO}_2=\frac{330}{44}=\frac{30}{4}=\mathrm{x}\)
Also given produced \(\mathrm{H}_2 \mathrm{O}=270 \mathrm{gm}\)
\(\therefore\) Moles of \(\mathrm{H}_2 \mathrm{O}=\frac{270}{18}=15=\frac{\mathrm{y}}{2}\).
\(\Rightarrow \mathrm{y}=30\)
\(\therefore \mathrm{x}: \mathrm{y}=\frac{30}{4}: 30=1: 4\)
Formula of the compound \(=\left(\mathrm{CH}_4\right)_n\)
\(\therefore\) Weight of \(\mathrm{C}\) in \(\left(\mathrm{CH}_4\right)_{\mathrm{n}}=12 \mathrm{n}\)
Weight of \(\mathrm{H}\) in \(\left(\mathrm{CH}_4\right)_n=4 n\)
\(\therefore\) Weight ratio of \(\mathrm{C}\) and \(\mathrm{H}\)
\(=12 \mathrm{n}: 4 \mathrm{n}\)
\(=3: 1\)
\(\therefore \%\) of \(\mathrm{C}=\frac{3}{4} \times 100=75\)
and \(\%\) of \(\mathrm{H}=\frac{1}{4} \times 100=25\)