/**
 * This function takes the archeologist's name, the list of found artifacts, and the current excavation site.
 * It returns a new list that contains the artifacts found at the intersection between the list of found artifacts
 * and the excavation site.
 *
 * @param archeologist Name of the archeologist
 * @param foundArtifacts List of artifacts that have already been found
 * @param excavationSite List of artifacts at the current excavation site
 * @return List of artifacts found at the intersection of the foundArtifacts and excavationSite lists
 */
fun findArtifacts(archeologist: String, foundArtifacts: List<String>, excavationSite: List<String>): List<String> {

    // Initialize an empty list to store the artifacts found at the intersection
    val intersectionArtifacts = mutableListOf<String>()

    // Iterate over each artifact in the foundArtifacts list
    for (artifact in foundArtifacts) {
        // Check if the artifact is present at the excavation site using the contains method
        if (artifact in excavationSite) {
            // Append the artifact to the intersectionArtifacts list if it is present at the excavation site
            intersectionArtifacts.add(artifact)
        }
    }

    // Return the final list of artifacts found at the intersection
    return intersectionArtifacts
}
/**
 * This function takes the archeologist's name, the list of found artifacts, and the current excavation site.
 * It returns a new list that contains the artifacts found at the intersection between the list of found artifacts
 * and the excavation site.
 *
 * @param archeologist Name of the archeologist
 * @param foundArtifacts List of artifacts that have already been found
 * @param excavationSite List of artifacts at the current excavation site
 * @return List of artifacts found at the intersection of the foundArtifacts and excavationSite lists
 */
fun findArtifacts(archeologist: String, foundArtifacts: List<String>, excavationSite: List<String>): List<String> {
/**
 * This function takes the archeologist's name, the list of found artifacts, and the current excavation site.
 * It returns a new list that contains the artifacts found at the intersection between the list of found artifacts
 * and the excavation site.
 *
 * @param archeologist Name of the archeologist
 * @param foundArtifacts List of artifacts that have already been found
 * @param excavationSite List of artifacts at the current excavation site
 * @return List of artifacts found at the intersection of the foundArtifacts and excavationSite lists
 */
fun findArtifacts(archeologist: String, foundArtifacts: List<String>, excavationSite: List<String>): List<String> {

    // Initialize an empty list to store the artifacts found at the intersection
    val intersectionArtifacts = mutableListOf<String>()

    // Iterate over each artifact in the foundArtifacts list
    for (artifact in foundArtifacts) {
        // Check if the artifact is present at the excavation site using the contains method
        if (artifact in excavationSite) {
            // Append the artifact to the intersectionArtifacts list if it is present at the excavation site
            intersectionArtifacts.add(artifact)
        }
    }

    // Return the final list of artifacts found at the intersection
    return intersectionArtifacts
}