You are correct! You correctly solved for the mass of oxygen required to react completely with 15 g of carbon monoxide and subtracted this amount from the original 9 g of oxygen to give the answer of 0.4 g.