/**
 * You are an archaeologist exploring an ancient tomb. Your goal is to find the common elements between the sets
 * representing the artifacts you have discovered and those present in the tomb. Complete the function below to return
 * a set containing all the common elements between the sets.
 *
 * @param archaeologistSet A set containing the artifacts discovered by the archaeologist.
 * @param tombSet A set containing the artifacts present in the tomb.
 * @return A set containing the common elements between the archaeologistSet and tombSet.
 */
fun findCommonElements(archaeologistSet: Set<Any>, tombSet: Set<Any>): Set<Any> {

    // Remove the pass keyword and implement the code to find common elements
    val commonElements = mutableSetOf<Any>()

    // Iterate over each element in the archaeologistSet and check if it exists in the tombSet
    for (element in archaeologistSet) {
        if (element in tombSet) {
            // Found a common element, add it to the commonElements set
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * You are an archaeologist exploring an ancient tomb. Your goal is to find the common elements between the sets
 * representing the artifacts you have discovered and those present in the tomb. Complete the function below to return
 * a set containing all the common elements between the sets.
 *
 * @param archaeologistSet A set containing the artifacts discovered by the archaeologist.
 * @param tombSet A set containing the artifacts present in the tomb.
 * @return A set containing the common elements between the archaeologistSet and tombSet.
 */
fun findCommonElements(archaeologistSet: Set<Any>, tombSet: Set<Any>): Set<Any> {
/**
 * You are an archaeologist exploring an ancient tomb. Your goal is to find the common elements between the sets
 * representing the artifacts you have discovered and those present in the tomb. Complete the function below to return
 * a set containing all the common elements between the sets.
 *
 * @param archaeologistSet A set containing the artifacts discovered by the archaeologist.
 * @param tombSet A set containing the artifacts present in the tomb.
 * @return A set containing the common elements between the archaeologistSet and tombSet.
 */
fun findCommonElements(archaeologistSet: Set<Any>, tombSet: Set<Any>): Set<Any> {

    // Remove the pass keyword and implement the code to find common elements
    val commonElements = mutableSetOf<Any>()

    // Iterate over each element in the archaeologistSet and check if it exists in the tombSet
    for (element in archaeologistSet) {
        if (element in tombSet) {
            // Found a common element, add it to the commonElements set
            commonElements.add(element)
        }
    }

    return commonElements
}