This looks like a classic stoichiometry problem: a certain amount of a reactant is added, and it should theoretically generate a certain amount of product.
How do we know how much product? It'll depend on a couple things: molar ratios and molar mass.
Molar ratios describe the relationships between amounts of reactants and products in a balanced chemical reaction (mol of X/mol of Y). In this reaction, 2 moles of KClO3 generates 3 moles of O2 (and 4 moles would generate 6 moles, 4 molecules would generate 6 molecules, etc.).
Molar masses describe the relationship between a mole of a substance and its mass (g/mol). We get this information from the periodic table: the molar mass of KClO3 is the molar mass of (K + Cl + 3(O)) in g/mol = 122.55 g/mol and the molar mass of O2 is (2(O)) in g/mol = 32 g/mol.
We convert g of KClO3 to g of O2 by paying close attention to units:
- 5.00 g KClO3 needs to be converted to mol KClO3 using molar mass so that we can use molar ratios in the next step: 5.00 g KClO3 * (1 mol KClO3 / 122.55 g KClO3) = 0.0407997 mol KClO3. Notice how grams of KClO3 cancel and we end up in moles of KClO3.
- Next, 0.0407997 mol KClO3 needs to convert into mol of O2, the product of interest, using molar ratios from the balanced chemical reaction: 0.0407997 mol KClO3 * (3 mol O2/ 2 mol KClO3) = 0.0611995 mol O2. Here, we've canceled mol of KClO3 and resulted in mol of O2, the product of interest.
- Lastly, we care about grams of O2, not moles of O2. We'll convert by multiplying the moles of O2 by the molar mass of O2: 0.0611995 mol O2 * (32 g O2/1 mol O2) = 1.95838 g O2. Again, notice that we cancel mol of O2 and end up with g of O2, the desired units.
- We should change the number of significant figures to preserve the level of accuracy from the given mass. 5.00 g has 3 sig figs, and we use multiplication and division throughout our calculations, so our result should have 3 sig figs, too: 1.96 g O2.
It's possible to combine all these steps using the "train track method," shown below with canceled units:
5.00 g KClO3 * (1 mol KClO3 / 122.55 g KClO3) * (3 mol O2/ 2 mol KClO3) * (32 g O2/1 mol O2) = 1.96 g O2