For each of the changes described, decide whether two or more elements formed a compound or if a compound decomposed (to form elements or other compounds). Explain your reasoning in each case.
(a) After a reddish-colored metal is placed in a flame, it turns black and has a higher mass.
(b) A white solid is heated in oxygen and forms two gases. The mass of the gases is the same as the masses of the solid and the oxygen.