/**
 * This function takes in a dictionary of photographers' information and a name,
 * and returns a triple containing the name, age, and camera model of the photographer.
 * The function assumes that the name is unique and exists in the dictionary.
 */
fun retrievePhotographerInfo(photographers: Map<String, Map<String, Any>>, name: String): Triple<String, Int, String> {

    // Access the photographer's information using the given name
    val photographer = photographers[name]!!

    // Retrieve the required details from the photographer's dictionary
    val photographerName = photographer["name"] as String
    val photographerAge = photographer["age"] as Int
    val photographerCamera = photographer["camera"] as String

    // Return a triple containing the name, age, and camera model of the photographer
    return Triple(photographerName, photographerAge, photographerCamera)
}

// Example dictionary of photographers' information
val photographersInfo = mapOf(
    "John" to mapOf("name" to "John", "age" to 35, "camera" to "Canon"),
    "Emma" to mapOf("name" to "Emma", "age" to 29, "camera" to "Nikon"),
    "Michael" to mapOf("name" to "Michael", "age" to 42, "camera" to "Sony"),
    "Sarah" to mapOf("name" to "Sarah", "age" to 31, "camera" to "Panasonic")
)
/**
 * This function takes in a dictionary of photographers' information and a name,
 * and returns a triple containing the name, age, and camera model of the photographer.
 * The function assumes that the name is unique and exists in the dictionary.
 */
fun retrievePhotographerInfo(photographers: Map<String, Map<String, Any>>, name: String): Triple<String, Int, String> {
/**
 * This function takes in a dictionary of photographers' information and a name,
 * and returns a triple containing the name, age, and camera model of the photographer.
 * The function assumes that the name is unique and exists in the dictionary.
 */
fun retrievePhotographerInfo(photographers: Map<String, Map<String, Any>>, name: String): Triple<String, Int, String> {

    // Access the photographer's information using the given name
    val photographer = photographers[name]!!

    // Retrieve the required details from the photographer's dictionary
    val photographerName = photographer["name"] as String
    val photographerAge = photographer["age"] as Int
    val photographerCamera = photographer["camera"] as String

    // Return a triple containing the name, age, and camera model of the photographer
    return Triple(photographerName, photographerAge, photographerCamera)
}

// Example dictionary of photographers' information
val photographersInfo = mapOf(
    "John" to mapOf("name" to "John", "age" to 35, "camera" to "Canon"),
    "Emma" to mapOf("name" to "Emma", "age" to 29, "camera" to "Nikon"),
    "Michael" to mapOf("name" to "Michael", "age" to 42, "camera" to "Sony"),
    "Sarah" to mapOf("name" to "Sarah", "age" to 31, "camera" to "Panasonic")
)