/**
 * Given two lists, find the intersection between them and return a tuple containing
 * the numbers that are greater than or equal to a given value.
 *
 * @param args1 A list of numbers.
 * @param args2 A list of numbers.
 * @param value The value to compare against.
 * @return A tuple of numbers greater than or equal to a given value, that are present
 * in both input lists.
 *
 * Example:
 * intersectionGtOrEq(listOf(1, 2, 3, 4, 5), listOf(3, 4, 5, 6, 7), 4) // Output: (4, 5)
 * intersectionGtOrEq(listOf(10, 20, 30, 40), listOf(20, 30), 15) // Output: (20, 30)
 */
fun intersectionGtOrEq(args1: List<Int>, args2: List<Int>, value: Int): List<Int> {

    val intersection = args1.intersect(args2)
    return intersection.filter { it >= value }
}
/**
 * Given two lists, find the intersection between them and return a tuple containing
 * the numbers that are greater than or equal to a given value.
 *
 * @param args1 A list of numbers.
 * @param args2 A list of numbers.
 * @param value The value to compare against.
 * @return A tuple of numbers greater than or equal to a given value, that are present
 * in both input lists.
 *
 * Example:
 * intersectionGtOrEq(listOf(1, 2, 3, 4, 5), listOf(3, 4, 5, 6, 7), 4) // Output: (4, 5)
 * intersectionGtOrEq(listOf(10, 20, 30, 40), listOf(20, 30), 15) // Output: (20, 30)
 */
fun intersectionGtOrEq(args1: List<Int>, args2: List<Int>, value: Int): List<Int> {
/**
 * Given two lists, find the intersection between them and return a tuple containing
 * the numbers that are greater than or equal to a given value.
 *
 * @param args1 A list of numbers.
 * @param args2 A list of numbers.
 * @param value The value to compare against.
 * @return A tuple of numbers greater than or equal to a given value, that are present
 * in both input lists.
 *
 * Example:
 * intersectionGtOrEq(listOf(1, 2, 3, 4, 5), listOf(3, 4, 5, 6, 7), 4) // Output: (4, 5)
 * intersectionGtOrEq(listOf(10, 20, 30, 40), listOf(20, 30), 15) // Output: (20, 30)
 */
fun intersectionGtOrEq(args1: List<Int>, args2: List<Int>, value: Int): List<Int> {

    val intersection = args1.intersect(args2)
    return intersection.filter { it >= value }
}