Send message if same answer as above selected

I have a list of pantry products and I need to count to remove them from the inventory in a group with select_one, the options can be orange apple mango pineapple and I repeat this group to select the same fruits.
There will be the option to write "apple is already selected" if I have already chosen apple as an answer in this group.
Thank you

Can you please provide the questions you will use in your survey? And if you have tried anything in XLSForm already, can you please attach also that file?