/**
 * Given two lists t1 and t2, combine them into a new list where each element is the division of the corresponding elements in the original lists.
 */
fun combineTuples(t1: List<Double>, t2: List<Double>): List<Any> {

    if (t1.size != t2.size) {
        return listOf("Error: Lists must have the same length.")
    }

    val combinedList = mutableListOf<Any>()
    for (i in t1.indices) {
        try {
            combinedList.add(t1[i] / t2[i])
        } catch (e: ArithmeticException) {
            combinedList.add("Error: Division by zero.")
        }
    }

    return combinedList
}
/**
 * Given two lists t1 and t2, combine them into a new list where each element is the division of the corresponding elements in the original lists.
 */
fun combineTuples(t1: List<Double>, t2: List<Double>): List<Any> {
/**
 * Given two lists t1 and t2, combine them into a new list where each element is the division of the corresponding elements in the original lists.
 */
fun combineTuples(t1: List<Double>, t2: List<Double>): List<Any> {

    if (t1.size != t2.size) {
        return listOf("Error: Lists must have the same length.")
    }

    val combinedList = mutableListOf<Any>()
    for (i in t1.indices) {
        try {
            combinedList.add(t1[i] / t2[i])
        } catch (e: ArithmeticException) {
            combinedList.add("Error: Division by zero.")
        }
    }

    return combinedList
}