/**
 * This function takes a list of room dimensions (length, width, and height)
 * and calculates the total area of all the rooms combined.
 * The room dimensions are given in feet.
 */
fun calculateTotalArea(roomDimensions: List<Triple<Int, Int, Int>>): Int {

    var totalArea = 0
    for (room in roomDimensions) {
        val (length, width, _) = room
        val area = length * width
        totalArea += area
    }
    return totalArea
}
/**
 * This function takes a list of room dimensions (length, width, and height)
 * and calculates the total area of all the rooms combined.
 * The room dimensions are given in feet.
 */
fun calculateTotalArea(roomDimensions: List<Triple<Int, Int, Int>>): Int {
/**
 * This function takes a list of room dimensions (length, width, and height)
 * and calculates the total area of all the rooms combined.
 * The room dimensions are given in feet.
 */
fun calculateTotalArea(roomDimensions: List<Triple<Int, Int, Int>>): Int {

    var totalArea = 0
    for (room in roomDimensions) {
        val (length, width, _) = room
        val area = length * width
        totalArea += area
    }
    return totalArea
}