Calculating the molecular formula and molar mass