Answer:
H₂O₂
Step-by-step explanation:
The molecular formula gives the exact number of atoms within a chemical compound. 
In this problem: 
Mass of O = 32g 
Mass of H = 2g
 Let us follow this methodical approach to solve the problem: 
Elements O H
Mass 32 2 
Molar mass 16 1 
Number of moles 32/16 2/1 
 2 2 
The molecular formula of the compound is H₂O₂