Element is a pure substance which is composed of atoms of similar elements.It can not be decomposed into simpler constituents using chemical reactions.Example: Copper
Compound is a pure substance which is made from atoms of different elements combined together in a fixed ratio by mass.It can be decomposed into simpler constituents using chemical reactions. Example: water
Thus as it give that the red sample on being heated, a gas is released and a blue powder is left after the heating. Thus the given sample is a compound.
Susana's red crystal sample is a compound because it was broken down into a gas and blue powder. It is not an element because elements cannot be broken down into simpler substances by ordinary means, such as heating.
A matchstick has a lot of chemical energy stored in it. When the match is struck, it burns and the chemical energy in it produces heat energy and light energy.