/**
 * Given two lists of numbers, returns the intersection of the two lists where the numbers are greater than a given
 * threshold.
 *
 * @param lst1 First list of numbers.
 * @param lst2 Second list of numbers.
 * @param threshold Threshold value to compare the numbers.
 * @return Intersection of the two lists where the numbers are greater than the threshold.
 */
fun intersectionGreaterThan(lst1: List<Double>, lst2: List<Double>, threshold: Double): List<Double> {

    // Filter the numbers in lst1 greater than the threshold
    val filteredLst1 = lst1.filter { it > threshold }

    // Filter the numbers in lst2 greater than the threshold
    val filteredLst2 = lst2.filter { it > threshold }

    // Find the intersection of the filtered lists
    val intersection = filteredLst1.intersect(filteredLst2)

    return intersection.toList()
}
/**
 * Given two lists of numbers, returns the intersection of the two lists where the numbers are greater than a given
 * threshold.
 *
 * @param lst1 First list of numbers.
 * @param lst2 Second list of numbers.
 * @param threshold Threshold value to compare the numbers.
 * @return Intersection of the two lists where the numbers are greater than the threshold.
 */
fun intersectionGreaterThan(lst1: List<Double>, lst2: List<Double>, threshold: Double): List<Double> {
/**
 * Given two lists of numbers, returns the intersection of the two lists where the numbers are greater than a given
 * threshold.
 *
 * @param lst1 First list of numbers.
 * @param lst2 Second list of numbers.
 * @param threshold Threshold value to compare the numbers.
 * @return Intersection of the two lists where the numbers are greater than the threshold.
 */
fun intersectionGreaterThan(lst1: List<Double>, lst2: List<Double>, threshold: Double): List<Double> {

    // Filter the numbers in lst1 greater than the threshold
    val filteredLst1 = lst1.filter { it > threshold }

    // Filter the numbers in lst2 greater than the threshold
    val filteredLst2 = lst2.filter { it > threshold }

    // Find the intersection of the filtered lists
    val intersection = filteredLst1.intersect(filteredLst2)

    return intersection.toList()
}