(a) The hard material, X, mined from the Earth and used in the generation of electricity is coal. The soft material, Y, used as a fuel in the form of candles is wax. The gaseous material, Z, occurring along with petroleum and increasingly used as a vehicular fuel in its compressed form is natural gas.
(b) (i) Wax burns by producing a yellow, luminous flame due to incomplete combustion. This is because oxygen doesn't get a proper way to get into the wax vapour to burn it completely.
(ii) Coal ultimately burns without producing a flame. It comprises some volatile substances that burn with a flame, and once the those substances have completely burned out, the coal starts glowing red.
(iii) Natural gas can burn in a gas stove by producing a blue flame. This is because a stove has holes in its burner that allows proper amount of oxygen needed for the complete combustion of the natural gas.