using System.Collections.Generic;
public static void Main()
Dictionary<string, List<string>> test = new()
{ "animal", ["cat", "dog"] },
{ "fruit", ["banana", "apple"] }
var result = test.SelectMany(x => x.Value.Select(y => (x.Key, y)))
foreach (var item in result)
Console.WriteLine($"{item.Item1} {item.Item2}");