from typing import Tuple


def analyze(foods: dict) -> Tuple[list, list]:
    """Return all ingredients and allergens in foods."""
    ingredients = []
    allergens = []
    for food in foods.values():
        ingredients += food["ingredients"]
        allergens += food["allergens"]
    return list(set(ingredients)), list(set(allergens))