An atomic weight (relative atomic mass) of an element from a specified source is the ratio of the average mass per atom of the element to 1/12 of the mass of an atom of 12C.
and NA=6.02*10^23
therefore 6.02*10^23 atoms of an elenment weigh 8*2=16g
thus the atomic weight of the element is 16
and the element is oxygen