Answer: Atom B has absorbed energy, perhaps by heating, is the correct option.
Step-by-step explanation:
When energy is supplied to an electron then due to absorption of energy it tends to move from a lower energy level to higher energy level.
And, when this electron moves from higher energy level to lower energy level then excess of energy absorbed by it is released in the form of visible light or radiation. This emission of energy is also responsible for imparting color to a compound.
As the outer electron of atom B has moved to a higher energy state which means that energy is absorbed by the electrons of atom B.
Thus, we can conclude that atom B has absorbed energy, perhaps by heating could cause this difference.