/**
 * Given two dictionaries representing archaeological findings, find the common elements between them.
 *
 * @param archaeologyDict1 A dictionary representing the first set of archaeological findings.
 * @param archaeologyDict2 A dictionary representing the second set of archaeological findings.
 * @return A list containing the common elements found.
 */
fun findCommonElements(archaeologyDict1: Map<String, String>, archaeologyDict2: Map<String, String>): List<Pair<String, String>> {

    val commonElements = mutableListOf<Pair<String, String>>()

    // Find the common elements between the dictionaries
    for ((key1, value1) in archaeologyDict1) {
        for ((key2, value2) in archaeologyDict2) {
            if (key1 == key2 && value1 == value2) {
                // Append a pair of key-value to commonElements list
                commonElements.add(Pair(key1, value1))
            }
        }
    }

    return commonElements
}
/**
 * Given two dictionaries representing archaeological findings, find the common elements between them.
 *
 * @param archaeologyDict1 A dictionary representing the first set of archaeological findings.
 * @param archaeologyDict2 A dictionary representing the second set of archaeological findings.
 * @return A list containing the common elements found.
 */
fun findCommonElements(archaeologyDict1: Map<String, String>, archaeologyDict2: Map<String, String>): List<Pair<String, String>> {
/**
 * Given two dictionaries representing archaeological findings, find the common elements between them.
 *
 * @param archaeologyDict1 A dictionary representing the first set of archaeological findings.
 * @param archaeologyDict2 A dictionary representing the second set of archaeological findings.
 * @return A list containing the common elements found.
 */
fun findCommonElements(archaeologyDict1: Map<String, String>, archaeologyDict2: Map<String, String>): List<Pair<String, String>> {

    val commonElements = mutableListOf<Pair<String, String>>()

    // Find the common elements between the dictionaries
    for ((key1, value1) in archaeologyDict1) {
        for ((key2, value2) in archaeologyDict2) {
            if (key1 == key2 && value1 == value2) {
                // Append a pair of key-value to commonElements list
                commonElements.add(Pair(key1, value1))
            }
        }
    }

    return commonElements
}