For X, when silver nitrate is treated with X it gives the blue colour solution which means that that solution may contain copper. Copper is more reactive than silver, it will displace silver from the silver nitrate and form blue colour compound copper nitrate.
For Y, when silver nitrate is treated with Y it gives the light green colour solution which means that that solution may contain iron. Iron is more reactive than silver, it will displace silver from the silver nitrate and form green colour compound iron nitrate.
Hence, the correct answer is option 4.