We know that, oxidizing agents undergo reduction agents undergo oxidation. Hence, we need to know whether the substance has undergone oxidation or reducing. As X undergoes a chemical change by losing hydrogen atoms,it undergoes oxidation. Hence, it is a reducing agent. To the product Y, hydrogen is added, It undergoes reduction . Hence, Y acts as an oxidizing agent .