\(n_P=\dfrac{3.1}{31}=0.1\left(mol\right)\)
\(n_{O_2}=\dfrac{2.24}{22.4}=0.1\left(mol\right)\)
\(4P+5O_2\underrightarrow{t^0}2P_2O_5\)
\(0.08......0.1......0.04\)
\(m_{rắn}=m_{P\left(dư\right)}+m_{P_2O_5}=\left(0.1-0.08\right)\cdot31+0.04\cdot142=6.3\left(g\right)\)