var boughtApples = apples.GroupBy(x => BoughtById);
var boughtCoconuts = coconuts.GroupBy(x => x.BoughtById);
var boughtOranges = oranges.GroupBy(x => x.BoughtById);
I want to get the key values BoughtById
who bought all three items and then remove them if from all IGroupings
if the haven' bought all three.
boughtApples = [1,3,4,5]
boughtCoconuts = [1,2,4,9]
boughtOranges = [6,3,4,10]
OUTPUT
boughtApples = [4]
boughtCoconuts = [4]
boughtOranges = [4]