/**
 * This function takes two tuples as input and returns a new tuple that contains the common elements of both tuples.
 *
 * @param t1 The first input tuple.
 * @param t2 The second input tuple.
 * @return The tuple containing the common elements of both input tuples.
 */
fun getCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate over the first tuple
    for (element in t1) {
        // Check if the element is in the second tuple as well
        if (element in t2) {
            // Append the element to the commonElements list
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * This function takes two tuples as input and returns a new tuple that contains the common elements of both tuples.
 *
 * @param t1 The first input tuple.
 * @param t2 The second input tuple.
 * @return The tuple containing the common elements of both input tuples.
 */
fun getCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {
/**
 * This function takes two tuples as input and returns a new tuple that contains the common elements of both tuples.
 *
 * @param t1 The first input tuple.
 * @param t2 The second input tuple.
 * @return The tuple containing the common elements of both input tuples.
 */
fun getCommonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate over the first tuple
    for (element in t1) {
        // Check if the element is in the second tuple as well
        if (element in t2) {
            // Append the element to the commonElements list
            commonElements.add(element)
        }
    }

    return commonElements
}