The molar concentration of any solution is the number of moles of solute present per liter of solution. Therefore, for any solution to have the same molarity as another, it must have the same number of moles per liter. The mathematical expression of this is:
Molar concentration (M) = moles (n) / Liter (L)