/**
 * Calculate the average income of economists whose income exceeds a certain threshold.
 *
 * @param incomes A list of incomes of economists.
 * @param threshold The minimum income threshold.
 * @return The average income of economists whose income exceeds the threshold.
 */
fun calculateAverageIncome(incomes: List<Int>, threshold: Int): Float {

    var totalIncome = 0
    var economistCount = 0

    for (income in incomes) {
        if (income < threshold) {
            continue
        } else {
            totalIncome += income
            economistCount++
        }
    }

    return totalIncome.toFloat() / economistCount
}
/**
 * Calculate the average income of economists whose income exceeds a certain threshold.
 *
 * @param incomes A list of incomes of economists.
 * @param threshold The minimum income threshold.
 * @return The average income of economists whose income exceeds the threshold.
 */
fun calculateAverageIncome(incomes: List<Int>, threshold: Int): Float {
/**
 * Calculate the average income of economists whose income exceeds a certain threshold.
 *
 * @param incomes A list of incomes of economists.
 * @param threshold The minimum income threshold.
 * @return The average income of economists whose income exceeds the threshold.
 */
fun calculateAverageIncome(incomes: List<Int>, threshold: Int): Float {

    var totalIncome = 0
    var economistCount = 0

    for (income in incomes) {
        if (income < threshold) {
            continue
        } else {
            totalIncome += income
            economistCount++
        }
    }

    return totalIncome.toFloat() / economistCount
}