A student is given two anion solutions: one with X and one with Y. The student mixes X with silver nitrate and a white precipitate compound is observed. The student then adds Y and the precipitate turns yellow. Which silver compound is less soluble, AX or AgY? Explain your answer.