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