First you can divide the given weight by the molar mass in order to get the number of moles
15 g / (84.01 g/mol) = 0.1786 mol NaHCO3
the subscript on Oxygen is 3 which means that there are 3 moles of Oxygen atoms for every 1 mole of sodium bicarbonate
0.1786 mol x 3 mol / 1 mol = 0.5358 mol O2
finally then you want to multiply by the molar mass of oxygen to convert over into grams
0.5358 mol O x 16.00 g/mol = 8.57 g O
meaning that there are 8.57 g of oxygen in 15 g of sodium bicarbonate