/**
 * This function calculates the total revenue of a business given the inventory and prices of each item.
 *
 * @param inventory A map where the keys are items and the values are the quantities in stock.
 * @param prices A map where the keys are items and the values are the prices of each item.
 * @return The total revenue of the business.
 */
fun calculateTotalRevenue(inventory: Map<String, Int>, prices: Map<String, Double>): Double {

    var totalRevenue = 0.0

    for ((item, quantity) in inventory) {
        repeat(quantity) {
            // Complete the code below to calculate the revenue for each item in the inventory
            val revenue = prices[item] ?: 0.0
            totalRevenue += revenue
        }
    }

    return totalRevenue
}
/**
 * This function calculates the total revenue of a business given the inventory and prices of each item.
 *
 * @param inventory A map where the keys are items and the values are the quantities in stock.
 * @param prices A map where the keys are items and the values are the prices of each item.
 * @return The total revenue of the business.
 */
fun calculateTotalRevenue(inventory: Map<String, Int>, prices: Map<String, Double>): Double {
/**
 * This function calculates the total revenue of a business given the inventory and prices of each item.
 *
 * @param inventory A map where the keys are items and the values are the quantities in stock.
 * @param prices A map where the keys are items and the values are the prices of each item.
 * @return The total revenue of the business.
 */
fun calculateTotalRevenue(inventory: Map<String, Int>, prices: Map<String, Double>): Double {

    var totalRevenue = 0.0

    for ((item, quantity) in inventory) {
        repeat(quantity) {
            // Complete the code below to calculate the revenue for each item in the inventory
            val revenue = prices[item] ?: 0.0
            totalRevenue += revenue
        }
    }

    return totalRevenue
}