It seems like there is some missing information, possibly the number of moles or molarity of the solution.
You need the balanced equation and the number of moles of the reactant KClO3 to determine the number of moles of O2 produced. Then, use that number of moles times the molar weight of O2 to determine the number of grams needed.