In order to determine the mass in this scenario you want to calculate the molar mass of the compound and then multiply by the given number of moles.
In this case for the compound Ca3(PO4)2, you can find the molar mass by taking
3(Ca) + 2(P) + 8(O)
=3(40.08) + 2(30.97) + 8(16)
=120.24 + 61.94 + 128
=310.18
so the molar mass is 310.18 g/mol
Finally then you can calculate the Final Mass by multiplying by the moles
Mass = Moles x Molar Mass
Mass = 4.00 mol x 310.18 g/mol
Mass = 1240.72 g
meaning that the end mass here is around 1241 grams