def get_results_from_dict_of_sets(list_of_elements, dict_of_sets):
    """
    We have a list of elements that are in a dict of elements, and every element have a set with results.
    We want to extract the results corresponding to our elements.
    """
    results = set()
    for element in list_of_elements:
        if element in dict_of_sets:
            for result in dict_of_sets[element]:
                results.add(result)
    return results