Avogadro’s number is used to convert from moles to atoms/molecules. You can use the atomic mass/molecular mass to convert from mol to g and vice versa.
So, the best way that I have learned to do this is to use dimensional analysis, or just multiply by conversion factors x g/mol, 6.023*10^23 atoms/mol, etc.
Please let me know if you need any further clarification or explanation. And I’ll gladly double check your answers if you want me to.
Good luck, you’re gonna need it (not really, this stuff will be second nature before long)