According to the Law of Conservation of Mass, the total mass of the reactants must equal the total mass of the products.
In this case, you have 100 g of mercuric oxide (HgO) that decomposes to produce oxygen (O) and mercury (Hg). If 7 g of oxygen is produced, you can calculate the mass of mercury produced as follows:
Initial mass (HgO) = 100 g
Produced mass (O) = 7 g
Mass of Hg = Initial mass - Produced mass
Mass of Hg = 100 g - 7 g = 93 g
So, the mass of mercury (Hg) produced in the reaction is 93 g.