/**
 * You are a lawyer and need to determine the legal advice to provide based on the client's age and income.
 * If the client's age is below 18, first check if their income is less than $1000. If it is, return 'Not eligible for any legal services'.
 * Otherwise, return 'Legal services available with parental consent'.
 * If the client's age is 18 or above, check if their income is less than $50000. If it is, return 'Legal services not available'.
 * Otherwise, return 'Legal services available'.
 */
fun findLegalAdvice(clientAge: Int, clientIncome: Int): String {

    return when {
        clientAge < 18 && clientIncome < 1000 -> "Not eligible for any legal services"
        clientAge < 18 && clientIncome >= 1000 -> "Legal services available with parental consent"
        clientAge >= 18 && clientIncome < 50000 -> "Legal services not available"
        else -> "Legal services available"
    }
}
/**
 * You are a lawyer and need to determine the legal advice to provide based on the client's age and income.
 * If the client's age is below 18, first check if their income is less than $1000. If it is, return 'Not eligible for any legal services'.
 * Otherwise, return 'Legal services available with parental consent'.
 * If the client's age is 18 or above, check if their income is less than $50000. If it is, return 'Legal services not available'.
 * Otherwise, return 'Legal services available'.
 */
fun findLegalAdvice(clientAge: Int, clientIncome: Int): String {
/**
 * You are a lawyer and need to determine the legal advice to provide based on the client's age and income.
 * If the client's age is below 18, first check if their income is less than $1000. If it is, return 'Not eligible for any legal services'.
 * Otherwise, return 'Legal services available with parental consent'.
 * If the client's age is 18 or above, check if their income is less than $50000. If it is, return 'Legal services not available'.
 * Otherwise, return 'Legal services available'.
 */
fun findLegalAdvice(clientAge: Int, clientIncome: Int): String {

    return when {
        clientAge < 18 && clientIncome < 1000 -> "Not eligible for any legal services"
        clientAge < 18 && clientIncome >= 1000 -> "Legal services available with parental consent"
        clientAge >= 18 && clientIncome < 50000 -> "Legal services not available"
        else -> "Legal services available"
    }
}