/**
 * This function takes in two lists of numbers and finds the common numbers between them.
 *
 * @param list1 The first list of numbers
 * @param list2 The second list of numbers
 * @return A set of common numbers found in both lists
 */
fun findCommonNumbers(list1: List<Int>, list2: List<Int>): Set<Int> {

    // Initialize an empty set to store the common numbers
    val commonNumbers = mutableSetOf<Int>()

    // Loop through each number in the first list
    for (number1 in list1) {
        // Loop through each number in the second list
        for (number2 in list2) {
            // If the numbers are equal, add it to the commonNumbers set
            if (number1 == number2) {
                commonNumbers.add(number1)
            }
        }
    }

    return commonNumbers
}
/**
 * This function takes in two lists of numbers and finds the common numbers between them.
 *
 * @param list1 The first list of numbers
 * @param list2 The second list of numbers
 * @return A set of common numbers found in both lists
 */
fun findCommonNumbers(list1: List<Int>, list2: List<Int>): Set<Int> {
/**
 * This function takes in two lists of numbers and finds the common numbers between them.
 *
 * @param list1 The first list of numbers
 * @param list2 The second list of numbers
 * @return A set of common numbers found in both lists
 */
fun findCommonNumbers(list1: List<Int>, list2: List<Int>): Set<Int> {

    // Initialize an empty set to store the common numbers
    val commonNumbers = mutableSetOf<Int>()

    // Loop through each number in the first list
    for (number1 in list1) {
        // Loop through each number in the second list
        for (number2 in list2) {
            // If the numbers are equal, add it to the commonNumbers set
            if (number1 == number2) {
                commonNumbers.add(number1)
            }
        }
    }

    return commonNumbers
}