/**
 * Given a sequence of RGB colors represented as tuples, find the average of the individual color channels
 * (red, green, blue) and return the mean color as a tuple.
 *
 * @param colors A sequence of RGB colors represented as tuples.
 * @return The mean color obtained by averaging the color channels.
 */
fun displayMeanColors(colors: List<Triple<Int, Int, Int>>): Triple<Int, Int, Int> {

    // Initialize counters for each color channel
    var redSum = 0
    var greenSum = 0
    var blueSum = 0

    // Iterate over each color in the sequence
    for (color in colors) {
        // Access the individual color channels using destructuring
        val (red, green, blue) = color

        // Sum the values of each color channel
        redSum += red
        greenSum += green
        blueSum += blue
    }

    // Calculate the average of each color channel
    val redMean = redSum / colors.size
    val greenMean = greenSum / colors.size
    val blueMean = blueSum / colors.size

    // Return the mean color as a Triple
    return Triple(redMean, greenMean, blueMean)
}
/**
 * Given a sequence of RGB colors represented as tuples, find the average of the individual color channels
 * (red, green, blue) and return the mean color as a tuple.
 *
 * @param colors A sequence of RGB colors represented as tuples.
 * @return The mean color obtained by averaging the color channels.
 */
fun displayMeanColors(colors: List<Triple<Int, Int, Int>>): Triple<Int, Int, Int> {
/**
 * Given a sequence of RGB colors represented as tuples, find the average of the individual color channels
 * (red, green, blue) and return the mean color as a tuple.
 *
 * @param colors A sequence of RGB colors represented as tuples.
 * @return The mean color obtained by averaging the color channels.
 */
fun displayMeanColors(colors: List<Triple<Int, Int, Int>>): Triple<Int, Int, Int> {

    // Initialize counters for each color channel
    var redSum = 0
    var greenSum = 0
    var blueSum = 0

    // Iterate over each color in the sequence
    for (color in colors) {
        // Access the individual color channels using destructuring
        val (red, green, blue) = color

        // Sum the values of each color channel
        redSum += red
        greenSum += green
        blueSum += blue
    }

    // Calculate the average of each color channel
    val redMean = redSum / colors.size
    val greenMean = greenSum / colors.size
    val blueMean = blueSum / colors.size

    // Return the mean color as a Triple
    return Triple(redMean, greenMean, blueMean)
}