The correct response is:
Stars form from dust and gas, so galaxies with younger stars typically consist of higher proportions of dust and gas than other galaxies.
This is because young stars are often formed in regions rich in gas and dust, which are the raw materials for star formation. Galaxies that are actively forming stars will have more of these materials compared to older galaxies where star formation has slowed or ceased, resulting in an aging stellar population and less available gas and dust.