Summary
The equation you need to remember is:
Number of Moles = Mass of Component in Grams
RMM of Component
RMM of Component
This is a very useful equation and you will use it for molarity, molality and mole fraction calculations and probably others too.