/**
 * This exercise aims to test your understanding of looping through lists and creating a tuple from a range of values.
 * Your task is to implement a function that takes a list of numbers as input and returns a tuple containing the
 * cubes of the even numbers in the list.
 *
 * @param numbers A list of numbers.
 * @return A tuple containing the cubes of the even numbers in the list.
 *
 * Example:
 * findEvenCubes(listOf(1, 2, 3, 4, 5, 6)) // Output: Triple(8, 64, 216)
 */
fun findEvenCubes(numbers: List<Int>): Triple<Int, Int, Int> {

    val evenCubes = numbers.filter { it % 2 == 0 }.map { it * it * it }
    return Triple(evenCubes[0], evenCubes[1], evenCubes[2])
}
/**
 * This exercise aims to test your understanding of looping through lists and creating a tuple from a range of values.
 * Your task is to implement a function that takes a list of numbers as input and returns a tuple containing the
 * cubes of the even numbers in the list.
 *
 * @param numbers A list of numbers.
 * @return A tuple containing the cubes of the even numbers in the list.
 *
 * Example:
 * findEvenCubes(listOf(1, 2, 3, 4, 5, 6)) // Output: Triple(8, 64, 216)
 */
fun findEvenCubes(numbers: List<Int>): Triple<Int, Int, Int> {
/**
 * This exercise aims to test your understanding of looping through lists and creating a tuple from a range of values.
 * Your task is to implement a function that takes a list of numbers as input and returns a tuple containing the
 * cubes of the even numbers in the list.
 *
 * @param numbers A list of numbers.
 * @return A tuple containing the cubes of the even numbers in the list.
 *
 * Example:
 * findEvenCubes(listOf(1, 2, 3, 4, 5, 6)) // Output: Triple(8, 64, 216)
 */
fun findEvenCubes(numbers: List<Int>): Triple<Int, Int, Int> {

    val evenCubes = numbers.filter { it % 2 == 0 }.map { it * it * it }
    return Triple(evenCubes[0], evenCubes[1], evenCubes[2])
}