/**
 * This function calculates the total fabric required by a fashion designer to create clothes for a given number
 * of people, based on their sizes.
 *
 * @param numClothes Number of clothes the fashion designer needs to create.
 * @param numPeople Number of people for whom the clothes are being designed.
 * @param clothesSizes A map containing the sizes (in meters) for each clothing item.
 * @return The total fabric required in square meters.
 *
 * The keys of the clothesSizes map represent the clothing items, and the values represent their sizes.
 *
 * Example:
 * calculateFabricRequired(3, 2, mapOf("Shirt" to 1.2, "Pants" to 1.5, "Dress" to 2.0))
 * Output: 9.3
 */
fun calculateFabricRequired(numClothes: Int, numPeople: Int, clothesSizes: Map<String, Double>): Double {

    var totalFabric = 0.0

    repeat(numClothes) {
        repeat(numPeople) {
            if ("Shirt" in clothesSizes) {
                totalFabric += clothesSizes["Shirt"] ?: 0.0
            }
            // ADD CODE HERE to handle other clothing items
        }
    }

    return totalFabric
}
/**
 * This function calculates the total fabric required by a fashion designer to create clothes for a given number
 * of people, based on their sizes.
 *
 * @param numClothes Number of clothes the fashion designer needs to create.
 * @param numPeople Number of people for whom the clothes are being designed.
 * @param clothesSizes A map containing the sizes (in meters) for each clothing item.
 * @return The total fabric required in square meters.
 *
 * The keys of the clothesSizes map represent the clothing items, and the values represent their sizes.
 *
 * Example:
 * calculateFabricRequired(3, 2, mapOf("Shirt" to 1.2, "Pants" to 1.5, "Dress" to 2.0))
 * Output: 9.3
 */
fun calculateFabricRequired(numClothes: Int, numPeople: Int, clothesSizes: Map<String, Double>): Double {
/**
 * This function calculates the total fabric required by a fashion designer to create clothes for a given number
 * of people, based on their sizes.
 *
 * @param numClothes Number of clothes the fashion designer needs to create.
 * @param numPeople Number of people for whom the clothes are being designed.
 * @param clothesSizes A map containing the sizes (in meters) for each clothing item.
 * @return The total fabric required in square meters.
 *
 * The keys of the clothesSizes map represent the clothing items, and the values represent their sizes.
 *
 * Example:
 * calculateFabricRequired(3, 2, mapOf("Shirt" to 1.2, "Pants" to 1.5, "Dress" to 2.0))
 * Output: 9.3
 */
fun calculateFabricRequired(numClothes: Int, numPeople: Int, clothesSizes: Map<String, Double>): Double {

    var totalFabric = 0.0

    repeat(numClothes) {
        repeat(numPeople) {
            if ("Shirt" in clothesSizes) {
                totalFabric += clothesSizes["Shirt"] ?: 0.0
            }
            // ADD CODE HERE to handle other clothing items
        }
    }

    return totalFabric
}