Validation Code in Two Related Multiple Questions

Dear all
I have 2 MULTIPLE QUESTIONS Q1 and Q2 that are correlated.
I want to make validation cide in Q2, where the answer that has been selected in Q1 cannot be selected again in Q2.
I tried making validation with syntax: not (selected $ {Q1}, ‘‘) but it didn’t work.