Conversion of grams to moles and vice versa