/**
 * This function takes a list of fashion products as input and
 * returns a tuple consisting of the product count and the average
 * price of the products.
 */
fun fashionDesigner(products: List<Map<String, Any>>): Pair<Int, Double> {

    val prices = mutableListOf<Double>()

    for (product in products) {
        val price = product["price"] as? Double

        if (price != null) {
            prices.add(price)
        }
    }

    val productCount = products.size
    val averagePrice = prices.average()

    return Pair(productCount, averagePrice)
}

// Example usage
/**
 * This function takes a list of fashion products as input and
 * returns a tuple consisting of the product count and the average
 * price of the products.
 */
fun fashionDesigner(products: List<Map<String, Any>>): Pair<Int, Double> {
/**
 * This function takes a list of fashion products as input and
 * returns a tuple consisting of the product count and the average
 * price of the products.
 */
fun fashionDesigner(products: List<Map<String, Any>>): Pair<Int, Double> {

    val prices = mutableListOf<Double>()

    for (product in products) {
        val price = product["price"] as? Double

        if (price != null) {
            prices.add(price)
        }
    }

    val productCount = products.size
    val averagePrice = prices.average()

    return Pair(productCount, averagePrice)
}

// Example usage