/**
 * Given a list of pets, calculate the total weight of all the pets.
 *
 * @param pets A list of pairs representing the name and weight of each pet.
 * @return The total weight of all the pets.
 */
fun calculateTotalWeight(pets: List<Pair<String, Float>>): Float {

    return pets.sumByDouble { it.second.toDouble() }.toFloat()
}
/**
 * Given a list of pets, calculate the total weight of all the pets.
 *
 * @param pets A list of pairs representing the name and weight of each pet.
 * @return The total weight of all the pets.
 */
fun calculateTotalWeight(pets: List<Pair<String, Float>>): Float {
/**
 * Given a list of pets, calculate the total weight of all the pets.
 *
 * @param pets A list of pairs representing the name and weight of each pet.
 * @return The total weight of all the pets.
 */
fun calculateTotalWeight(pets: List<Pair<String, Float>>): Float {

    return pets.sumByDouble { it.second.toDouble() }.toFloat()
}