Need help asap explain how scientists can use spectra to determine substances on another planet is what it says at the bottom

You can use spectra to determine substances on another planet is what it says at the bottom. This explains how scientists can use spectra to determine.