/**
 * This function returns a list of common elements between two tuples.
 * The function takes two lists of tuples as input and checks for elements that occur in both tuples.
 */
fun getCommonElements(tupleList1: List<List<Any>>, tupleList2: List<List<Any>>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (tuple1 in tupleList1) {
        for (tuple2 in tupleList2) {
            for (element in tuple1) {
                if (element in tuple2 && element !in commonElements) {
                    commonElements.add(element)
                }
            }
        }
    }

    return commonElements
}
/**
 * This function returns a list of common elements between two tuples.
 * The function takes two lists of tuples as input and checks for elements that occur in both tuples.
 */
fun getCommonElements(tupleList1: List<List<Any>>, tupleList2: List<List<Any>>): List<Any> {
/**
 * This function returns a list of common elements between two tuples.
 * The function takes two lists of tuples as input and checks for elements that occur in both tuples.
 */
fun getCommonElements(tupleList1: List<List<Any>>, tupleList2: List<List<Any>>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (tuple1 in tupleList1) {
        for (tuple2 in tupleList2) {
            for (element in tuple1) {
                if (element in tuple2 && element !in commonElements) {
                    commonElements.add(element)
                }
            }
        }
    }

    return commonElements
}