/**
 * The function takes a list of items and calculates the total cost of the items after applying any applicable discounts.
 *
 * @param items A list of pairs, where each pair contains the name of an item and its price.
 * @return The total cost of the items after applying any applicable discounts.
 *
 * Example:
 * calculateTotalCost(listOf("switches" to 20, "cables" to 15, "lights" to 30)) -> 55
 * calculateTotalCost(listOf("switches" to 20, "cables" to 15, "lights" to 30, "screws" to 10)) -> 64
 */
fun calculateTotalCost(items: List<Pair<String, Int>>): Int {

    var totalCost = 0

    for (item in items) {
        if (item.first == "lights") {
            continue
        }
        totalCost += item.second
    }

    return totalCost
}
/**
 * The function takes a list of items and calculates the total cost of the items after applying any applicable discounts.
 *
 * @param items A list of pairs, where each pair contains the name of an item and its price.
 * @return The total cost of the items after applying any applicable discounts.
 *
 * Example:
 * calculateTotalCost(listOf("switches" to 20, "cables" to 15, "lights" to 30)) -> 55
 * calculateTotalCost(listOf("switches" to 20, "cables" to 15, "lights" to 30, "screws" to 10)) -> 64
 */
fun calculateTotalCost(items: List<Pair<String, Int>>): Int {
/**
 * The function takes a list of items and calculates the total cost of the items after applying any applicable discounts.
 *
 * @param items A list of pairs, where each pair contains the name of an item and its price.
 * @return The total cost of the items after applying any applicable discounts.
 *
 * Example:
 * calculateTotalCost(listOf("switches" to 20, "cables" to 15, "lights" to 30)) -> 55
 * calculateTotalCost(listOf("switches" to 20, "cables" to 15, "lights" to 30, "screws" to 10)) -> 64
 */
fun calculateTotalCost(items: List<Pair<String, Int>>): Int {

    var totalCost = 0

    for (item in items) {
        if (item.first == "lights") {
            continue
        }
        totalCost += item.second
    }

    return totalCost
}