how do you convert volume of gas to moles of solid?

change volume of gas to moles of gas....then moles of solid is the same.