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) Upon heating, a blue powder turned white and lost mass.
(b) A white solid forms three different gases when heated. The total mass of the gases is the same as that of the solid.