one mole of P weights about 31 grams
in one mole there are 6.022*10^23 atoms
we use the rule of threes
6.022*10^23atoms......weight..........31 grams
3.45*10^23 atoms.........weight...........x grams
x=(3.45*10^23*31)/6.022*10^23
x=106.95/6.022=17.76 grams