How can I determine chemicals and I need predict to be in 4th of July packet of magical flames and justify the answer

• There is gunpowder inside the packets of fire works that causes the explosions when in contact with open flame.
,• fireworks are packed with careful combinations of chemicals such as ,potassium nitrate, (saltpeter),, sulphur,, and ,charcoal.
,• Different colours are made by mixing different chemicals such as, ,Calcium,Strontium, Barium,Boron, Alumiinum, Copper and Sodium.
,• These are the chemicals that you can predict to find in the 4th of July Magical flames .