What does the last code line do?

It creates a set containing common elements of installed and preferredIt creates a set containing all elements of installed and preferredIt creates a set containing elements of installed that are not in preferred

It creates a set containing common elements of installed and preferred.