input: def common_elements(list1: List[Any], list2: List[Any]) -> List[Any]:
      """ Given two lists, returns a new list containing only the elements that are common to both lists.
      >>> common_elements([1, 2, 3, 4, 8], [2, 6, 8, 10])
      [2, 8]
      >>> common_elements(['apple', 'banana', 'cherry'], ['banana', 'cherry', 'date'])
      ['banana', 'cherry']
      """
output:     common_set = set(list1) & set(list2)
      return list(common_set)