/**
 * Write a function to find the common elements between a set and a tuple.
 *
 * @param economistSet Set of elements representing data analyzed by an economist.
 * @param economistTuple Tuple of elements representing data analyzed by an economist.
 * @return A set of common elements found in both the set and tuple.
 */
fun intersectionExercise(economistSet: Set<Any>, economistTuple: List<Any>): Set<Any> {

    // Initialize an empty set to store the common elements
    val commonElements = mutableSetOf<Any>()

    // Loop through each element in the set
    for (element in economistSet) {
        // Check if the element exists in the tuple
        if (element in economistTuple) {
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * Write a function to find the common elements between a set and a tuple.
 *
 * @param economistSet Set of elements representing data analyzed by an economist.
 * @param economistTuple Tuple of elements representing data analyzed by an economist.
 * @return A set of common elements found in both the set and tuple.
 */
fun intersectionExercise(economistSet: Set<Any>, economistTuple: List<Any>): Set<Any> {
/**
 * Write a function to find the common elements between a set and a tuple.
 *
 * @param economistSet Set of elements representing data analyzed by an economist.
 * @param economistTuple Tuple of elements representing data analyzed by an economist.
 * @return A set of common elements found in both the set and tuple.
 */
fun intersectionExercise(economistSet: Set<Any>, economistTuple: List<Any>): Set<Any> {

    // Initialize an empty set to store the common elements
    val commonElements = mutableSetOf<Any>()

    // Loop through each element in the set
    for (element in economistSet) {
        // Check if the element exists in the tuple
        if (element in economistTuple) {
            commonElements.add(element)
        }
    }

    return commonElements
}