in barium phosphate, the percentage phosphate is constant.
it's equal to the mass of 2 units of phosphate, over the total formula mass of the barium phosphate.
so barium phosphate always has 31.56% phosphate.
so if you have 0.32g barium phosphate, you'll have 31.56% * 0.32g phosphate