How do you find the number of moles in a substance if you have the density and the molecular weight?

2 answers

#moles = grams/molar mass. You don't need the density if you have grams.
Okay I think I wrote the question wrong.

You need to find the number of moles in 5mL of the substance given the density and the molecular weight.