The best way to approach these type of problems is to assume 100 grams.
No need to assume any mass here.
C
2H
2 has a molar mass of 2*12+2*1=26 g. There are two moles of atomic hydrogen in the mole of C
2H
2, that means 2*1 g of hydrogen, so mass percentage of hydrogen is 2/26*100%=7.7%.
Shouldn't this be C since 24 g/mol and 6g/mol is equal to 25%?
Your mistake is that you compare mass of hydrogen to mass of carbon, while you should compare mass of hydrogen to the total mass of the molecule.