/**
 * Given an archaeologist and a list of artifacts, find the artifacts that the archaeologist has collected.
 *
 * @param archaeologist The name of the archaeologist.
 * @param artifacts A list of artifacts.
 * @return A list of artifacts that the archaeologist has collected.
 */
fun findArtifacts(archaeologist: String, artifacts: List<String>): List<String> {

    val collectedArtifacts = mutableListOf<String>()

    // TODO: Complete the code to find the collected artifacts using the 'in' operator and 'plusAssign (+=)'

    for (artifact in artifacts) {
        // Check if the artifact is owned by the archaeologist
        if (archaeologist in artifact) {
            // Add the artifact to the collectedArtifacts list
            collectedArtifacts += artifact
        }
    }

    return collectedArtifacts
}
/**
 * Given an archaeologist and a list of artifacts, find the artifacts that the archaeologist has collected.
 *
 * @param archaeologist The name of the archaeologist.
 * @param artifacts A list of artifacts.
 * @return A list of artifacts that the archaeologist has collected.
 */
fun findArtifacts(archaeologist: String, artifacts: List<String>): List<String> {
/**
 * Given an archaeologist and a list of artifacts, find the artifacts that the archaeologist has collected.
 *
 * @param archaeologist The name of the archaeologist.
 * @param artifacts A list of artifacts.
 * @return A list of artifacts that the archaeologist has collected.
 */
fun findArtifacts(archaeologist: String, artifacts: List<String>): List<String> {

    val collectedArtifacts = mutableListOf<String>()

    // TODO: Complete the code to find the collected artifacts using the 'in' operator and 'plusAssign (+=)'

    for (artifact in artifacts) {
        // Check if the artifact is owned by the archaeologist
        if (archaeologist in artifact) {
            // Add the artifact to the collectedArtifacts list
            collectedArtifacts += artifact
        }
    }

    return collectedArtifacts
}