The answer is D. The final substance in Beaker X is a mixture and in Beaker Y is a pure substance.
The question tells us that the sugar is not visible. This is because it is soluble. The sugar has dissolved into the water, making the two a mixture. The sand, on the other hand, is not dissolved at all. The water and sand are two separate pure substances.