/**
 * Calculate the total area of a building by summing up the individual areas of each room.
 *
 * @param roomWidths a list of the widths of each room (in meters)
 * @param roomLengths a list of the lengths of each room (in meters)
 * @return The total area of the building in square meters.
 */
fun calculateTotalArea(roomWidths: List<Double>, roomLengths: List<Double>): Double {

    var totalArea = 0.0

    // Iterate over each room and calculate its area
    for (i in roomWidths.indices) {
        val width = roomWidths[i]
        val length = roomLengths[i]
        val area = width * length

        // Update the total area by adding the area of the current room
        totalArea += area
    }

    return totalArea
}
/**
 * Calculate the total area of a building by summing up the individual areas of each room.
 *
 * @param roomWidths a list of the widths of each room (in meters)
 * @param roomLengths a list of the lengths of each room (in meters)
 * @return The total area of the building in square meters.
 */
fun calculateTotalArea(roomWidths: List<Double>, roomLengths: List<Double>): Double {
/**
 * Calculate the total area of a building by summing up the individual areas of each room.
 *
 * @param roomWidths a list of the widths of each room (in meters)
 * @param roomLengths a list of the lengths of each room (in meters)
 * @return The total area of the building in square meters.
 */
fun calculateTotalArea(roomWidths: List<Double>, roomLengths: List<Double>): Double {

    var totalArea = 0.0

    // Iterate over each room and calculate its area
    for (i in roomWidths.indices) {
        val width = roomWidths[i]
        val length = roomLengths[i]
        val area = width * length

        // Update the total area by adding the area of the current room
        totalArea += area
    }

    return totalArea
}