In an experiment, chemists heated a solid, red substance in a test tube. Vapors from the heated red substance condensed as a metallic liquid on the side of the tube. The red substance eventually disappeared, leaving only the metallic liquid and producing a gas that escaped from the tube. Which statement best describes what happened to the red substance in this experiment?