/**
 * This function calculates the total area of a room based on the given dimensions.
 *
 * @param roomDimensions A list of pairs representing the length and width of each wall in the room.
 * @return The total area of the room in square meters.
 */
fun calculateTotalArea(roomDimensions: List<Pair<Int, Int>>): Float {

    var totalArea = 0f
    
    // Iterate over each wall's dimensions and calculate the area
    for ((wallLength, wallWidth) in roomDimensions) {
        val wallArea = wallLength * wallWidth
        totalArea += wallArea
    }
    
    return totalArea
}
/**
 * This function calculates the total area of a room based on the given dimensions.
 *
 * @param roomDimensions A list of pairs representing the length and width of each wall in the room.
 * @return The total area of the room in square meters.
 */
fun calculateTotalArea(roomDimensions: List<Pair<Int, Int>>): Float {
/**
 * This function calculates the total area of a room based on the given dimensions.
 *
 * @param roomDimensions A list of pairs representing the length and width of each wall in the room.
 * @return The total area of the room in square meters.
 */
fun calculateTotalArea(roomDimensions: List<Pair<Int, Int>>): Float {

    var totalArea = 0f
    
    // Iterate over each wall's dimensions and calculate the area
    for ((wallLength, wallWidth) in roomDimensions) {
        val wallArea = wallLength * wallWidth
        totalArea += wallArea
    }
    
    return totalArea
}