/**
 * Given information about two lawyers as tuples, return a tuple containing common details.
 *
 * Example:
 * lawyer1 = ('John Smith', 'LLB', '15 years of experience')
 * lawyer2 = ('Jane Doe', 'LLM', '10 years of experience')
 *
 * getLawyerInfo(lawyer1, lawyer2) -> ('LLB', 'years of experience')
 */
fun getLawyerInfo(lawyer1: Triple<String, String, String>, lawyer2: Triple<String, String, String>): Pair<String, String> {

    val (lawyer1Education, lawyer1Experience) = lawyer1
    val (lawyer2Education, lawyer2Experience) = lawyer2

    var commonEducation: String? = null
    var commonExperience: String? = null

    // Find common details
    if (lawyer1Education == lawyer2Education) {
        commonEducation = lawyer1Education
    }
    if (lawyer1Experience == lawyer2Experience) {
        commonExperience = lawyer1Experience
    }

    return Pair(commonEducation ?: "", commonExperience ?: "")
}
/**
 * Given information about two lawyers as tuples, return a tuple containing common details.
 *
 * Example:
 * lawyer1 = ('John Smith', 'LLB', '15 years of experience')
 * lawyer2 = ('Jane Doe', 'LLM', '10 years of experience')
 *
 * getLawyerInfo(lawyer1, lawyer2) -> ('LLB', 'years of experience')
 */
fun getLawyerInfo(lawyer1: Triple<String, String, String>, lawyer2: Triple<String, String, String>): Pair<String, String> {
/**
 * Given information about two lawyers as tuples, return a tuple containing common details.
 *
 * Example:
 * lawyer1 = ('John Smith', 'LLB', '15 years of experience')
 * lawyer2 = ('Jane Doe', 'LLM', '10 years of experience')
 *
 * getLawyerInfo(lawyer1, lawyer2) -> ('LLB', 'years of experience')
 */
fun getLawyerInfo(lawyer1: Triple<String, String, String>, lawyer2: Triple<String, String, String>): Pair<String, String> {

    val (lawyer1Education, lawyer1Experience) = lawyer1
    val (lawyer2Education, lawyer2Experience) = lawyer2

    var commonEducation: String? = null
    var commonExperience: String? = null

    // Find common details
    if (lawyer1Education == lawyer2Education) {
        commonEducation = lawyer1Education
    }
    if (lawyer1Experience == lawyer2Experience) {
        commonExperience = lawyer1Experience
    }

    return Pair(commonEducation ?: "", commonExperience ?: "")
}