/**
 * Given two tuples, return a new tuple containing only the common elements between them.
 *
 * @param t1 The first tuple.
 * @param t2 The second tuple.
 * @return A new tuple containing the common elements between t1 and t2.
 */
fun intersectTuples(t1: List<Any>, t2: List<Any>): List<Any> {

    // Initialize an empty list to store the common elements
    val result = mutableListOf<Any>()
    
    // Loop through each element in the first tuple
    for (element in t1) {
        // Check if the element is present in the second tuple
        if (element in t2) {
            result.add(element)
        }
    }
    
    return result
}
/**
 * Given two tuples, return a new tuple containing only the common elements between them.
 *
 * @param t1 The first tuple.
 * @param t2 The second tuple.
 * @return A new tuple containing the common elements between t1 and t2.
 */
fun intersectTuples(t1: List<Any>, t2: List<Any>): List<Any> {
/**
 * Given two tuples, return a new tuple containing only the common elements between them.
 *
 * @param t1 The first tuple.
 * @param t2 The second tuple.
 * @return A new tuple containing the common elements between t1 and t2.
 */
fun intersectTuples(t1: List<Any>, t2: List<Any>): List<Any> {

    // Initialize an empty list to store the common elements
    val result = mutableListOf<Any>()
    
    // Loop through each element in the first tuple
    for (element in t1) {
        // Check if the element is present in the second tuple
        if (element in t2) {
            result.add(element)
        }
    }
    
    return result
}