A chemist added an excess of sodium sulfate to a solution of a soluble barium compound to precipitate all of the barium ion as barium sulfate, BaSO4. How many grams of barium ion are in a 487-mg sample of the barium compound if a solution of the sample gave 499 mg BaSO4 precipitate?
What is the mass percentage of barium in the compound?