/**
 * This function checks whether a person is eligible for a specific economic program based on their age and income.
 */
fun checkEligibility(age: Int, income: Int): String {

    return when {
        age >= 18 -> {
            when {
                income >= 50000 -> "Eligible"
                income < 10000 -> "Not Eligible"
                else -> "Unknown eligibility"
            }
        }
        age < 18 -> {
            when {
                income >= 100000 -> "Eligible"
                income < 20000 -> "Not Eligible"
                else -> "Unknown eligibility"
            }
        }
        else -> "Unknown eligibility"
    }
}
/**
 * This function checks whether a person is eligible for a specific economic program based on their age and income.
 */
fun checkEligibility(age: Int, income: Int): String {
/**
 * This function checks whether a person is eligible for a specific economic program based on their age and income.
 */
fun checkEligibility(age: Int, income: Int): String {

    return when {
        age >= 18 -> {
            when {
                income >= 50000 -> "Eligible"
                income < 10000 -> "Not Eligible"
                else -> "Unknown eligibility"
            }
        }
        age < 18 -> {
            when {
                income >= 100000 -> "Eligible"
                income < 20000 -> "Not Eligible"
                else -> "Unknown eligibility"
            }
        }
        else -> "Unknown eligibility"
    }
}