how to find no of g atoms and weight of an element ?