/**
 * Given a photographer, find the intersection of the cameras and lenses they own.
 *
 * @param photographer A map representing a photographer with 'cameras' and 'lenses' as keys,
 *                     where the corresponding values are sets of camera and lens models respectively.
 * @return A set containing the models that are common between the cameras and lenses.
 */
fun tupleIntersection(photographer: Map<String, Set<String>>): Set<String> {

    // Use set intersection to find the common models between cameras and lenses
    val intersection = photographer["cameras"]!!.intersect(photographer["lenses"]!!)
    return intersection
}
/**
 * Given a photographer, find the intersection of the cameras and lenses they own.
 *
 * @param photographer A map representing a photographer with 'cameras' and 'lenses' as keys,
 *                     where the corresponding values are sets of camera and lens models respectively.
 * @return A set containing the models that are common between the cameras and lenses.
 */
fun tupleIntersection(photographer: Map<String, Set<String>>): Set<String> {
/**
 * Given a photographer, find the intersection of the cameras and lenses they own.
 *
 * @param photographer A map representing a photographer with 'cameras' and 'lenses' as keys,
 *                     where the corresponding values are sets of camera and lens models respectively.
 * @return A set containing the models that are common between the cameras and lenses.
 */
fun tupleIntersection(photographer: Map<String, Set<String>>): Set<String> {

    // Use set intersection to find the common models between cameras and lenses
    val intersection = photographer["cameras"]!!.intersect(photographer["lenses"]!!)
    return intersection
}