def contains_ingredients(ing, check_ing):
    """
    IMPORTANT: You should NOT use loops or list comprehensions for this question.
    Instead, use lambda functions, map, and/or filter.

    Take a 2D list of ingredients you have and a list of pancake ingredients.
    Return a 2D list where each list only contains ingredients present in the list
    of pancake ingredients.

    >>> contains_ingredients([["peanut butter","sugar"], ["maple syrup", \
    "brown sugar", "salt"], ["flour", "eggs", "tomatoes"]], ["sugar", \
    "maple syrup", "eggs", "flour"])
    [['sugar'], ['maple syrup'], ['flour', 'eggs']]

    >>> contains_ingredients([["honey", "cinnamon"], ["water", "cucumber"], \
    ["flour", "eggs", "eggplants"], ["vanilla"]], ["vanilla", "honey", \
    "cinnamon", "eggs",])
    [['honey', 'cinnamon'], [], ['eggs'], ['vanilla']]
    """
    return list(map(lambda ings: list(filter(lambda inside_ings: True if inside_ings in check_ing else False, ings)), ing))