Respuesta :

They look at the light from the star using a spectrometer. The composition of the light tells them what elements are present in that star
This is more of a science question
You would get more answers there