Atomic structure
Since all oxygen atoms have 8 protons (the atomic number or Z), 18 - 8 = 10 neutrons. The general relationship would be:

A = Z + #n

Complete isotopic symbols contain this information.

The simple atomic mass scale (amu) gives only relative masses. Individual atoms are far too small to be massed with instruments we typically use in the lab.

Historically this was quite a problem. How to mass something you can't see? If you can't measure mass reliably then the roots of modern chemistry wither away because the most fundamental laws of chemical combination are based on combining masses of substances and mass conservation overall during chemical changes.