The molar mass of P2O5 is 141.94 g/mol.
Divide the given mass by the molar mass of the compound.
[tex]\frac{560\cdot\frac{g}{\text{mol}}}{141.94\cdot\frac{g}{\text{mol}}}\approx4[/tex]This means we need to multiply each subscript by 4 to find the molecular formula.
Therefore, the molecular formula is
[tex]P_8O_{10}[/tex]