Two compounds 'X' and 'Y' have the same formula C. One of them reacts with sodium metal to liberate H2 and CO2 with NaHCO3. The second one does not react with Na metal and NaHCO3 but undergoes hydrolysis with NaOH to form the salt of a carboxylic acid and compound 'Z', which is called wood spirit. Identify 'X', 'Y', and 'Z' and write the chemical equation for the reaction involved.