/**
 * This function takes in two tuples and returns the common values between them.
 *
 * @param tuple1 The first tuple.
 * @param tuple2 The second tuple.
 * @return A list containing the common values between the two tuples.
 */
fun findCommonValues(tuple1: List<Any>, tuple2: List<Any>): List<Any> {

    val commonValues = mutableListOf<Any>() // Initialize an empty list to store the common values

    // Loop through each element in the first tuple
    for (val1 in tuple1) {
        // Check if the element is also present in the second tuple
        if (val1 in tuple2) {
            commonValues.add(val1) // Add the common value to the list
        }
    }

    return commonValues
}
/**
 * This function takes in two tuples and returns the common values between them.
 *
 * @param tuple1 The first tuple.
 * @param tuple2 The second tuple.
 * @return A list containing the common values between the two tuples.
 */
fun findCommonValues(tuple1: List<Any>, tuple2: List<Any>): List<Any> {
/**
 * This function takes in two tuples and returns the common values between them.
 *
 * @param tuple1 The first tuple.
 * @param tuple2 The second tuple.
 * @return A list containing the common values between the two tuples.
 */
fun findCommonValues(tuple1: List<Any>, tuple2: List<Any>): List<Any> {

    val commonValues = mutableListOf<Any>() // Initialize an empty list to store the common values

    // Loop through each element in the first tuple
    for (val1 in tuple1) {
        // Check if the element is also present in the second tuple
        if (val1 in tuple2) {
            commonValues.add(val1) // Add the common value to the list
        }
    }

    return commonValues
}