using System.Collections.Generic;
public static void Main()
var x = new int[] { 2, 4, 6, 8, 10 };
.GroupJoin(x, a => a, b => b % 2, (key, items) => (key : key, list : items.ToList()))
Console.WriteLine(string.Join(Environment.NewLine, y.Select(pair => $"{pair.key} : {string.Join(", ", pair.list)}")));