/**
 * This function returns a list of numbers that are both present in the given list 'numbers'
 * and greater than or equal to the provided 'threshold'.
 *
 * @param numbers A list of integers.
 * @param threshold A threshold value.
 * @return A list of numbers that satisfy the given conditions.
 *
 * Example:
 * intersectionGreaterThanEqualTo(listOf(1, 2, 3, 4, 5, 6), 4) returns [4, 5, 6]
 * intersectionGreaterThanEqualTo(listOf(10, 20, 30, 40, 50), 40) returns [40, 50]
 */
fun intersectionGreaterThanEqualTo(numbers: List<Int>, threshold: Int): List<Int> {

    val result = mutableListOf<Int>()
    
    for (num in numbers) {
        if (num >= threshold) {
            result.add(num)
        }
    }
    
    return result
}
/**
 * This function returns a list of numbers that are both present in the given list 'numbers'
 * and greater than or equal to the provided 'threshold'.
 *
 * @param numbers A list of integers.
 * @param threshold A threshold value.
 * @return A list of numbers that satisfy the given conditions.
 *
 * Example:
 * intersectionGreaterThanEqualTo(listOf(1, 2, 3, 4, 5, 6), 4) returns [4, 5, 6]
 * intersectionGreaterThanEqualTo(listOf(10, 20, 30, 40, 50), 40) returns [40, 50]
 */
fun intersectionGreaterThanEqualTo(numbers: List<Int>, threshold: Int): List<Int> {
/**
 * This function returns a list of numbers that are both present in the given list 'numbers'
 * and greater than or equal to the provided 'threshold'.
 *
 * @param numbers A list of integers.
 * @param threshold A threshold value.
 * @return A list of numbers that satisfy the given conditions.
 *
 * Example:
 * intersectionGreaterThanEqualTo(listOf(1, 2, 3, 4, 5, 6), 4) returns [4, 5, 6]
 * intersectionGreaterThanEqualTo(listOf(10, 20, 30, 40, 50), 40) returns [40, 50]
 */
fun intersectionGreaterThanEqualTo(numbers: List<Int>, threshold: Int): List<Int> {

    val result = mutableListOf<Int>()
    
    for (num in numbers) {
        if (num >= threshold) {
            result.add(num)
        }
    }
    
    return result
}