Sofia A. answered 07/04/22
AP Chemistry Tutor with a PhD and College Teaching Experience
Let us the atomic mass of the lighter isotope as x, and the atomic mass of the heavier isotope as y. For a diatomic molecule we would expect three major peaks:
x + x = 2x (both atoms are light)
x + y (one atom is light, the other is heavy)
y + y = 2y (both atoms are heavy)
Hence
2x = 158, so x = 79
2y = 162, so y = 81
Now, let us perform a sanity check. If the isotopes’ masses are 79 amu and 81 amu, then the molecule containing one of each isotopes will have a mass of 79 + 81 = 160 amu, which indeed the position of the middle peak.