Unless you're able to provide a diagram representing the problem, there's not much I can do so solve this problem.
Because the concentration of molecules in the gas phase increases with increasing pressure, the concentration of dissolved gas molecules in the solution at equilibrium is also higher at higher pressures
Mg3(PO4)2 - the molar mass would be 262g/mol, which is 100%
Atomic mass of Mg is 24, since we have 3Mg we multiply by 3 and get a mass of 72
262 : 100% = 72 : x%
x = 72*100 / 262
x = 27.5%
And do that for every element — get the molar mass of P and multiply by 2, use a ratio, and get the molar mass of O and multiply by 8 and use ratios :)