When heated, KClO3 decomposes into KCl and O2.

2KClO3⟶2KCl+3O2

If this reaction produced 32.2 g KCl, how many grams of O2 were produced?