Given: mass of compound, m=0.250 g; mass of Mg2P2O7, m1=0.185 g.
One mole of Mg2P2O7 (222 g) contains two moles of phosphorus atoms (2×31=62 g). So
Percentage of P=222×m62×m1×100
=222×0.25062×0.185×100=20.7%
The compound contains 20.7 % phosphorus.