What could an astronomer deduce if they know the type of light being emitted by a star?

(1 point)
what dust that surrounds it
elements that it absorbs
its distance from the Sun
its distance from the Earth

An astronomer could deduce the elements that the star absorbs.