/**
 * In this exercise, you need to write a function that takes in two tuples,
 * t1 and t2, and returns the number of common elements between them.
 *
 * @param t1 A tuple containing elements (can be of any type)
 * @param t2 A tuple containing elements (can be of any type)
 * @return The number of common elements between the two tuples
 *
 * Example:
 * findCommonElements(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // 2
 * findCommonElements(listOf("apple", "banana", "orange"), listOf("banana", "kiwi")) // 1
 */
fun findCommonElements(t1: List<Any>, t2: List<Any>): Int {

    val commonElements = t1.toSet() intersect t2.toSet()
    return commonElements.size
}
/**
 * In this exercise, you need to write a function that takes in two tuples,
 * t1 and t2, and returns the number of common elements between them.
 *
 * @param t1 A tuple containing elements (can be of any type)
 * @param t2 A tuple containing elements (can be of any type)
 * @return The number of common elements between the two tuples
 *
 * Example:
 * findCommonElements(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // 2
 * findCommonElements(listOf("apple", "banana", "orange"), listOf("banana", "kiwi")) // 1
 */
fun findCommonElements(t1: List<Any>, t2: List<Any>): Int {
/**
 * In this exercise, you need to write a function that takes in two tuples,
 * t1 and t2, and returns the number of common elements between them.
 *
 * @param t1 A tuple containing elements (can be of any type)
 * @param t2 A tuple containing elements (can be of any type)
 * @return The number of common elements between the two tuples
 *
 * Example:
 * findCommonElements(listOf(1, 2, 3, 4), listOf(3, 4, 5, 6)) // 2
 * findCommonElements(listOf("apple", "banana", "orange"), listOf("banana", "kiwi")) // 1
 */
fun findCommonElements(t1: List<Any>, t2: List<Any>): Int {

    val commonElements = t1.toSet() intersect t2.toSet()
    return commonElements.size
}