how many grams of each element can be obtained from 10g of a sample that is 43%(nh4)3po4.12moo3?

I assume you have a sample weighing 10 g that is 43% (NH4)3PO4.12MoO3; therefore, you have 10 x 0.43 = 4.3 g of (pure) 100% (NH4)3PO4.12MoO3.

g each element = 4.3 x [number of atoms x atomic mass each element/molar mass (NH4)3PO4.12MoO3] = ?
Let's call molar mass (NH4)3PO4.12MoO3 =molar mass cmpd
Example for N.
4.3 x (3*14)/molar mass cmpd = ?
Example for H.
4.3 x (12*1)/molar mass cmpd = ?
Example for P.
4.3 x (1*31)/molar mass cmpd = ?
etc.
Post your work if you get stuck.