/**
 * This function takes in two lists: 'products' and 'prices'.
 * It multiplies each price in the 'prices' list by the quantity of the corresponding product in the 'products' list.
 * It returns the total cost of all the products.
 */
fun calculateTotalCost(products: List<Pair<String, Int>>, prices: List<Int>): Int {

    var totalCost = 0

    for ((_, quantity) in products.zip(prices)) {
        totalCost += quantity * prices[prices.indexOf(quantity)]
    }

    return totalCost
}
/**
 * This function takes in two lists: 'products' and 'prices'.
 * It multiplies each price in the 'prices' list by the quantity of the corresponding product in the 'products' list.
 * It returns the total cost of all the products.
 */
fun calculateTotalCost(products: List<Pair<String, Int>>, prices: List<Int>): Int {
/**
 * This function takes in two lists: 'products' and 'prices'.
 * It multiplies each price in the 'prices' list by the quantity of the corresponding product in the 'products' list.
 * It returns the total cost of all the products.
 */
fun calculateTotalCost(products: List<Pair<String, Int>>, prices: List<Int>): Int {

    var totalCost = 0

    for ((_, quantity) in products.zip(prices)) {
        totalCost += quantity * prices[prices.indexOf(quantity)]
    }

    return totalCost
}