Hello, Amya,
First, determine the molar mass of the substance. Using NaCl as an example, the molar mass would be (23 + 35.5 =) 58.5 grams/mole. The molar mass is a conversion factor, and we can use it as either 58.5 grams/mole or as (1/58.5)moles/gram. [Since 1 mole = 58.5 grams, the value of this expression reduces to just 1, and we can multiply 1 times anything without changing it's real value. The only change that occurs is due to the unit conversion].
If we have the number of moles, choose the conversion factor that is easiest to use (although both will work).
Assume there are 2 moles of NaCl and you dislike division. You'd chose the conversion factor 58.5 grams/mole, since it becomes a simple multiplication:
(2 moles NaCl)*(58.5 g NaCl/mole NaCl) = 117 grams NaCl. Easy, since the moles unit cancels, leaving just grams NaCl.
If you don't mind division, you can also use the other conversion form of (1mole HCl/58.5grams HCl), but we now need to divide the 2 moles NaCl by this factor. Now the moles cancel, again, and grams moves to the top:
(2 moles NaCl)/(1mole NaCl)/58.8 grams NaCl)
Ugly, and prone to calculation error, but it will give the same answer. Use the other form of the conversion factor and you'll find "Life is Good."
I hope this helps,
Bob