/**
 * Given a tuple containing the income data of an economist, this function returns true if the economist has a
 * high income, and false otherwise.
 *
 * The income data should be in the following format: (currentIncome, previousIncome, salaryIncrease)
 *
 * @param data A tuple containing the economist's income data.
 * @return true if the economist has a high income, false otherwise.
 */
fun isHighIncome(data: Triple<Int, Int, Int>): Boolean {

    val (currentIncome, previousIncome, salaryIncrease) = data

    // Check if the economist's current income is greater than the previous income
    if (currentIncome > previousIncome) {
        // Check if the salary increase is above average
        if (salaryIncrease > (currentIncome - previousIncome) * 0.1) {
            return true
        }
    }

    return false
}
/**
 * Given a tuple containing the income data of an economist, this function returns true if the economist has a
 * high income, and false otherwise.
 *
 * The income data should be in the following format: (currentIncome, previousIncome, salaryIncrease)
 *
 * @param data A tuple containing the economist's income data.
 * @return true if the economist has a high income, false otherwise.
 */
fun isHighIncome(data: Triple<Int, Int, Int>): Boolean {
/**
 * Given a tuple containing the income data of an economist, this function returns true if the economist has a
 * high income, and false otherwise.
 *
 * The income data should be in the following format: (currentIncome, previousIncome, salaryIncrease)
 *
 * @param data A tuple containing the economist's income data.
 * @return true if the economist has a high income, false otherwise.
 */
fun isHighIncome(data: Triple<Int, Int, Int>): Boolean {

    val (currentIncome, previousIncome, salaryIncrease) = data

    // Check if the economist's current income is greater than the previous income
    if (currentIncome > previousIncome) {
        // Check if the salary increase is above average
        if (salaryIncrease > (currentIncome - previousIncome) * 0.1) {
            return true
        }
    }

    return false
}