When a substance X is mixed with extract of red cabbage, the solution turns light green. We want to mix a substance Y to X such that a salt is formed. Substance Y will:
have no effect on red litmus
turn blue litmus red
When a substance X is mixed with extract of red cabbage, the solution turns light green, which means that the substance X is basic in nature.
We want to mix a substance Y to X such that a salt is formed, which indicates that substance Y is acidic in nature.
Therefore, the substance Y turns blue litmus into red colour and has no effect on red litmus.