How can I compare tags between two collections?

Hello!

Just wanted to know, if there is a way to compare the tags of one collection with the tags of another collection (if any tag of collectionA is a tag in collectionB).

Happy for any help.

Regards, Robert