ASTRONOMY HOMEWORK!! PLS HELP !!!

It looks like, from the graph given that Star 1 mostly consists of Hydrogen. Star 2 looks like Hydrogen and Helium. The way you can tell this is that the black lines must match with those of the elements. Hope I could help you! :)