When mixing 10m/L of 6 M HCl (diluted with 10 mL of water) with 0.1 g of Mg, how many moles of H2 are created and how many moles of Mg are reactant?

I understand I must use n=(PV)/(RT) to find H2, since it is a gas, but the constant R is still confusing to me and I cannot remember how to caculate moles in solids.

You don't need the gas equation.

Mg + 2HCl ==> H2 + MgCl2
mols Mg = grams/atomic mass = ?

This could be a limiting reagent problem so watch that.