/**
 * This function takes a list of numbers and a divisor as input and returns a list of numbers that are divisible
 * by the divisor using list comprehension.
 *
 * @param numbers A list of numbers.
 * @param divisor A number to divide the numbers by.
 * @return A list of numbers divisible by the given divisor.
 *
 * Example:
 * findMatchingNumbers(listOf(10, 12, 15, 18, 20), 3) // [12, 15, 18]
 * findMatchingNumbers(listOf(1, 2, 3, 4, 5), 2) // [2, 4]
 */
fun findMatchingNumbers(numbers: List<Int>, divisor: Int): List<Int> {

    return numbers.filter { it % divisor == 0 }
}
/**
 * This function takes a list of numbers and a divisor as input and returns a list of numbers that are divisible
 * by the divisor using list comprehension.
 *
 * @param numbers A list of numbers.
 * @param divisor A number to divide the numbers by.
 * @return A list of numbers divisible by the given divisor.
 *
 * Example:
 * findMatchingNumbers(listOf(10, 12, 15, 18, 20), 3) // [12, 15, 18]
 * findMatchingNumbers(listOf(1, 2, 3, 4, 5), 2) // [2, 4]
 */
fun findMatchingNumbers(numbers: List<Int>, divisor: Int): List<Int> {
/**
 * This function takes a list of numbers and a divisor as input and returns a list of numbers that are divisible
 * by the divisor using list comprehension.
 *
 * @param numbers A list of numbers.
 * @param divisor A number to divide the numbers by.
 * @return A list of numbers divisible by the given divisor.
 *
 * Example:
 * findMatchingNumbers(listOf(10, 12, 15, 18, 20), 3) // [12, 15, 18]
 * findMatchingNumbers(listOf(1, 2, 3, 4, 5), 2) // [2, 4]
 */
fun findMatchingNumbers(numbers: List<Int>, divisor: Int): List<Int> {

    return numbers.filter { it % divisor == 0 }
}