/**
 * Given a set of cases, remove cases where both the client and opposing party are minors.
 *
 * @param cases A set of cases where each case is represented as a tuple of (case_number, client_age, opposing_party_age)
 * @return The filtered set of cases where no both client and opposing party are minors
 */
fun filterCases(cases: Set<Triple<Int, Int, Int>>): Set<Triple<Int, Int, Int>> {

    val filteredCases = mutableSetOf<Triple<Int, Int, Int>>()

    for (case in cases) {
        val (caseNumber, clientAge, opposingPartyAge) = case

        if (clientAge > 18 && opposingPartyAge > 18) {
            filteredCases.add(case)
        }
    }

    return filteredCases
}
/**
 * Given a set of cases, remove cases where both the client and opposing party are minors.
 *
 * @param cases A set of cases where each case is represented as a tuple of (case_number, client_age, opposing_party_age)
 * @return The filtered set of cases where no both client and opposing party are minors
 */
fun filterCases(cases: Set<Triple<Int, Int, Int>>): Set<Triple<Int, Int, Int>> {
/**
 * Given a set of cases, remove cases where both the client and opposing party are minors.
 *
 * @param cases A set of cases where each case is represented as a tuple of (case_number, client_age, opposing_party_age)
 * @return The filtered set of cases where no both client and opposing party are minors
 */
fun filterCases(cases: Set<Triple<Int, Int, Int>>): Set<Triple<Int, Int, Int>> {

    val filteredCases = mutableSetOf<Triple<Int, Int, Int>>()

    for (case in cases) {
        val (caseNumber, clientAge, opposingPartyAge) = case

        if (clientAge > 18 && opposingPartyAge > 18) {
            filteredCases.add(case)
        }
    }

    return filteredCases
}