This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $\text{C}_x\text{H}_y+\left(x+\frac y4\right)\text{O}_2\to x\text{CO}_2+\frac y2\text{H}_2\text{O}$. By Gay-Lussac's law (volume ratio 10 : 40 : 50), $x=4$ and $\frac y2=5\Rightarrow y=10$. The hydrocarbon is $\text{C}_4\text{H}_{10}$: total atoms $=4+10=14$. Answer: 14.