Calculating molarity with given amounts of solute and solvent.