We have the neutral compound Ba₃(X)₂. <em>The total charge (zero) is equal to the sum of the charges of the ions times the number of ions in the molecule</em>.
3 × qBa + 2 × qX = 0
3 × (+2) + 2 × qX = 0
2 × qX = -6
qX = -3
If we have the cation Na⁺ and X³⁻, a neutral molecule would require 3 Na⁺ and 1 X³⁻. The resulting compound is Na₃X.
The reaction: 2H2(g) + O2(g) → 2H2O(g), can be interpreted as: a. 2 moles of hydrogen gas reacts with 1 mole of oxygen gas to produce 2 moles of water.