input: def common_elements(list1: List, list2: List) -> List:
      """Take two lists as input and return a new list containing only the common elements.
      >>> common_elements([1, 2, 3, 4, 8], [2, 6, 8, 10])
      [2, 8]
      """
      return list(set(list1) & set(list2))
output:     common_elements = [element for element in list1 if element in list2]
      return common_elements