/**
 * This function takes two lists of numbers and finds the common elements present in both lists.
 *
 * @param numbersList1 The first list of numbers.
 * @param numbersList2 The second list of numbers.
 * @return A list containing the common elements found in both lists.
 */
fun findIntersection(numbersList1: List<Int>, numbersList2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    for (num1 in numbersList1) {
        for (num2 in numbersList2) {
            if (num1 == num2) {
                commonElements.add(num1)
                break
            }
        }
    }

    return commonElements
}
/**
 * This function takes two lists of numbers and finds the common elements present in both lists.
 *
 * @param numbersList1 The first list of numbers.
 * @param numbersList2 The second list of numbers.
 * @return A list containing the common elements found in both lists.
 */
fun findIntersection(numbersList1: List<Int>, numbersList2: List<Int>): List<Int> {
/**
 * This function takes two lists of numbers and finds the common elements present in both lists.
 *
 * @param numbersList1 The first list of numbers.
 * @param numbersList2 The second list of numbers.
 * @return A list containing the common elements found in both lists.
 */
fun findIntersection(numbersList1: List<Int>, numbersList2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    for (num1 in numbersList1) {
        for (num2 in numbersList2) {
            if (num1 == num2) {
                commonElements.add(num1)
                break
            }
        }
    }

    return commonElements
}