Amount of hydrogen present in 100 grams of compounds = 25 grams
Number of moles of carbon =
WeightofcarbonMolecularweightofcarbon=7512=6.25
Numberofmolesofhydrogen=WeightofhydrogenMolecularweightofhydrogen=251=25moles
Henceratioofnumberofmolesofcarbonandhydrogenis
nC:nh=6.25:25
nCarbon:nhydrogen=1:4
HencethecompoundisCH4