how you calculate the mass of a substance when you only know the number of moles.

Then explain how you calculate the number of moles in a substance when you only know the mass.