as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
construct a function that takes a comma-separated string input and returns the words that appear in both strings.
user
def find_common_words(s1, s2):
    # split the strings and store them into two lists
    list1 = s1.split(', ')
    list2 = s2.split(', ')
    # create a set of words that appear in both strings
    common_words = set(list1).intersection(list2)
  
    # return the words
    return common_words
assistant