/**
 * As a social worker, you are assigned to find potential clients who are above the age of 30 and have an annual income greater than or equal to $50,000.
 *
 * Complete the code below to implement the filtering logic and return the list of potential clients.
 *
 * @param age A list of ages of individuals
 * @param income A list of annual incomes of individuals
 * @return A list of potential clients who satisfy the given criteria
 */
fun findClients(age: List<Int>, income: List<Int>): List<Pair<Int, Int>> {

    val potentialClients = mutableListOf<Pair<Int, Int>>()

    // Iterate through each client's age and income
    for (i in age.indices) {
        val clientAge = age[i]
        val clientIncome = income[i]

        // Check if client's age is greater than or equal to 30 and income is greater than or equal to $50,000
        if (clientAge >= 30 && clientIncome >= 50000) {
            // Add the client to the list of potential clients
            potentialClients.add(clientAge to clientIncome)
        }
    }

    return potentialClients
}
/**
 * As a social worker, you are assigned to find potential clients who are above the age of 30 and have an annual income greater than or equal to $50,000.
 *
 * Complete the code below to implement the filtering logic and return the list of potential clients.
 *
 * @param age A list of ages of individuals
 * @param income A list of annual incomes of individuals
 * @return A list of potential clients who satisfy the given criteria
 */
fun findClients(age: List<Int>, income: List<Int>): List<Pair<Int, Int>> {
/**
 * As a social worker, you are assigned to find potential clients who are above the age of 30 and have an annual income greater than or equal to $50,000.
 *
 * Complete the code below to implement the filtering logic and return the list of potential clients.
 *
 * @param age A list of ages of individuals
 * @param income A list of annual incomes of individuals
 * @return A list of potential clients who satisfy the given criteria
 */
fun findClients(age: List<Int>, income: List<Int>): List<Pair<Int, Int>> {

    val potentialClients = mutableListOf<Pair<Int, Int>>()

    // Iterate through each client's age and income
    for (i in age.indices) {
        val clientAge = age[i]
        val clientIncome = income[i]

        // Check if client's age is greater than or equal to 30 and income is greater than or equal to $50,000
        if (clientAge >= 30 && clientIncome >= 50000) {
            // Add the client to the list of potential clients
            potentialClients.add(clientAge to clientIncome)
        }
    }

    return potentialClients
}