Don't listen to what malyce said.
M and moles are completely different things.
M is molarity which is the concentration of a solution. Moles is kinda of another way of expressing how much "stuff" there is.
Solubility and concentration are somewhat related but they aren't directly used with each other.
Moles is the amount of grams of the the substance divided by the weight of the substance.
Then molarity is the moles of that divided by the amount of solvent there is, usually 1 liter.
Might be a bit too much so ask if you're still confused.