Section 9.4 of the chemistry-first version
and Section 6.7 of the atoms-first version of
An Introduction to Chemistry
by Mark Bishop
Calculations Between Mass of Element and Mass of Compound