1. Salt X is sodium carbonate (Na2CO3).
2. Gas Y is carbon dioxide (CO2).
3. The base and acid that produce sodium carbonate are Sodium hydroxide and Carbonic acid. The reaction is as follows:
2 NaOH (aq) + H2CO3(aq) Na2CO3(aq) + H2O(l)
4. Sodium Carbonate is basic in nature as it is salt of strong base and weak acid. So, it gives pink colour with phenolpthalein.