You have to use stoichiometry to get you answers. Use what you start with and convert your way through the problem
a. 100g H3PO4-->1 mol H3PO4--> moles of Mg3(PO4)2--> molar mass of Mg3(PO4)2
1 molar mass H3PO4 moles of H3PO4 1 mol Mg3(PO4)2
This is the set up for the first part. Then you multiply all of the numerators. Then you multiply the denominators. Then you divide the numerator by the denominator.