Good for you, that's absolutely right!
You must have got the answers from the subscript (lower) number of each element in the formula.
Eg:
Answer: 1 mole of ammonia (NH3) is made up of 1 mole of nitrogen atoms and 3 moles of hydrogen atoms.