Small quantities of oxygen can be prepared in the laboratory by heating potassium chlorate, KClO3(s).

The equation for the reaction is

2KClO3⟶2KCl+3O2

Calculate how many grams of O2(g) can be produced from heating 77.7 g KClO3(s).