def remove_stopwords(stop_words, text):
    """Remove the occurrence of all stop_words provided in the list

    Parameters
    ----------
    stop_words : set
        The set of words that should be removed
    
    text : str
        The text in which from the stop_words will be removed

    Returns
    -------
    str
        a string representing the text without stopwords
    """
    
    text = text.split()
    words_to_remove = stop_words.intersection(set(text))
    cleaned_list = [word for word in text if word not in words_to_remove]
    return " ".join(cleaned_list)