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 statement accurately reflects the relationship between star formation and the composition of a galaxy. Young stars form from the available dust and gas in a galaxy, leading to a higher proportion of these materials in galaxies that have had recent or ongoing star formation. As stars age and eventually die, they can return some material back to the interstellar medium, but overall, galaxies that host younger stars retain more dust and gas for ongoing star formation.