/**
 * Given a list of stars and their magnitudes, calculate the total magnitude.
 *
 * @param stars A list of pairs containing the name of the star and its magnitude.
 * @return The total magnitude of all the stars.
 */
fun calculateMagnitude(stars: List<Pair<String, Double>>): Double {

    var totalMagnitude = 0.0

    for (star in stars) {
        totalMagnitude += star.second
    }

    return totalMagnitude
}
/**
 * Given a list of stars and their magnitudes, calculate the total magnitude.
 *
 * @param stars A list of pairs containing the name of the star and its magnitude.
 * @return The total magnitude of all the stars.
 */
fun calculateMagnitude(stars: List<Pair<String, Double>>): Double {
/**
 * Given a list of stars and their magnitudes, calculate the total magnitude.
 *
 * @param stars A list of pairs containing the name of the star and its magnitude.
 * @return The total magnitude of all the stars.
 */
fun calculateMagnitude(stars: List<Pair<String, Double>>): Double {

    var totalMagnitude = 0.0

    for (star in stars) {
        totalMagnitude += star.second
    }

    return totalMagnitude
}