from typing import Dict
from typing import Any
from typing import List


def found_items(text: str, mapping: Dict[str, Any]) -> List[Any]:
    """
    Given an input string, see if any of the keys in the provided mapping are present. If so, for
    each key return the matched value. (useful for fetching skills and areas from codes)

    Parameters
    ----------
    text:
        Text to search over.
    mapping:
        Keys+values to pull from text.

    Returns
    -------
    items:
        Encoded values found in the text
    """
    items = []

    for search_text, code in mapping.items():
        if search_text in text:
            items.append(code)

    return sorted(items)