/**
 * This function finds the common numbers between two lists.
 *
 * @param list1 The first list containing integers.
 * @param list2 The second list containing integers.
 * @return A new list containing the common numbers found between the two input lists.
 */
fun findCommonNumbers(list1: List<Int>, list2: List<Int>): List<Int> {

    // Intersection of the two lists using the 'contains' function
    val commonNumbers = list1.filter { it in list2 }
    
    return commonNumbers
}
/**
 * This function finds the common numbers between two lists.
 *
 * @param list1 The first list containing integers.
 * @param list2 The second list containing integers.
 * @return A new list containing the common numbers found between the two input lists.
 */
fun findCommonNumbers(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * This function finds the common numbers between two lists.
 *
 * @param list1 The first list containing integers.
 * @param list2 The second list containing integers.
 * @return A new list containing the common numbers found between the two input lists.
 */
fun findCommonNumbers(list1: List<Int>, list2: List<Int>): List<Int> {

    // Intersection of the two lists using the 'contains' function
    val commonNumbers = list1.filter { it in list2 }
    
    return commonNumbers
}