what mass of NaCl do you need to make a 500mL of a 0.10M solution?

How many moles do you need? That's mols = M x L = ?

Then mols = grams/molar mass. You know molar mass and mols, solve for grams.