A metal sulphide X reacts with acid Y to form sodium sulphate and hydrogen sulphide. So, Y is
Sodium sulphide reacts with sulphuric acid to form sodium sulphate and hydrogen sulphide.
So, X is sodium sulphide and Y is sulphuric acid.
Na2S+H2SO4→Na2SO4+H2S↑