B directly; inversely
Pressure and volume have an inverse relationship (when one increases the other increases) while volume and temperature are direct (if one increases so does the other)
Note: these relationships are only true if other factors are constant such as the temperature, and amount (in moles).
CxHy + O2 --> x CO2 + y/2 H2O
Find the moles of CO2 : 18.9g / 44 g/mol = .430 mol CO2 = .430 mol of C in compound
Find the moles of H2O: 5.79g / 18 g/mol = .322 mol H2O = .166 mol of H in compound
Find the mass of C and H in the compound:
.430mol x 12 = 5.16 g C
.166mol x 1g = .166g H
When you add these up they indicate a mass of 5.33 g for the compound, not 5.80g as you stated in the problem.
Therefore it is likely that either the mass of the CO2 or the mass of H20 produced is incorrect (most likely a typo).
In any event, to find the formula, you would take the moles of C and H and convert to a whole number ratio (this is usually done by dividing both of them by the smaller value).
Following are the chemical and structural formulae of said complex compound,
The symbol of magnesium is mg and iron is Ir
They are not always identical because they have different isotope numbers which develops different neutrons numbers