/**
 * Given two lists of numbers, find the common numbers using the AND operator and the range function.
 *
 * @param numbers1 list of integers
 * @param numbers2 list of integers
 * @return list of common numbers between numbers1 and numbers2
 */
fun commonNumbers(numbers1: List<Int>, numbers2: List<Int>): List<Int> {

    // Initialize an empty list to store the common numbers
    val common = mutableListOf<Int>()
    
    // Loop through every number in numbers1
    for (num1 in numbers1) {
        // Check if the number is within the range of numbers in numbers2
        if (num1 in numbers2[0]..numbers2.last()) {
            // Add the common number to the common list
            common.add(num1)
        }
    }
    
    return common
}
/**
 * Given two lists of numbers, find the common numbers using the AND operator and the range function.
 *
 * @param numbers1 list of integers
 * @param numbers2 list of integers
 * @return list of common numbers between numbers1 and numbers2
 */
fun commonNumbers(numbers1: List<Int>, numbers2: List<Int>): List<Int> {
/**
 * Given two lists of numbers, find the common numbers using the AND operator and the range function.
 *
 * @param numbers1 list of integers
 * @param numbers2 list of integers
 * @return list of common numbers between numbers1 and numbers2
 */
fun commonNumbers(numbers1: List<Int>, numbers2: List<Int>): List<Int> {

    // Initialize an empty list to store the common numbers
    val common = mutableListOf<Int>()
    
    // Loop through every number in numbers1
    for (num1 in numbers1) {
        // Check if the number is within the range of numbers in numbers2
        if (num1 in numbers2[0]..numbers2.last()) {
            // Add the common number to the common list
            common.add(num1)
        }
    }
    
    return common
}