/**
 * This function calculates the total area covered by a list of buildings.
 *
 * @param buildings A list of maps representing different buildings.
 *                  Each map should have 'length' and 'width' keys with their respective values.
 * @return The total area covered by all the buildings in square units.
 */
fun calculateTotalArea(buildings: List<Map<String, Int>>): Double {

    var totalArea = 0.0

    for (building in buildings) {
        val area = building["length"]!! * building["width"]!!
        totalArea += area
    }

    return totalArea
}
/**
 * This function calculates the total area covered by a list of buildings.
 *
 * @param buildings A list of maps representing different buildings.
 *                  Each map should have 'length' and 'width' keys with their respective values.
 * @return The total area covered by all the buildings in square units.
 */
fun calculateTotalArea(buildings: List<Map<String, Int>>): Double {
/**
 * This function calculates the total area covered by a list of buildings.
 *
 * @param buildings A list of maps representing different buildings.
 *                  Each map should have 'length' and 'width' keys with their respective values.
 * @return The total area covered by all the buildings in square units.
 */
fun calculateTotalArea(buildings: List<Map<String, Int>>): Double {

    var totalArea = 0.0

    for (building in buildings) {
        val area = building["length"]!! * building["width"]!!
        totalArea += area
    }

    return totalArea
}