/**
 * This function takes a set of athletes and a list of distances and adds each distance as a new element to the set.
 *
 * @param athleteSet A set containing the athletes.
 * @param distances A list of distances to be added to the set.
 * @return The updated set of athletes with the distances added.
 *
 * Example:
 * addDistances(setOf("Tom", "Jerry", "Mike"), listOf(100.5, 200.3, 150.7))
 * Output: setOf("Tom", "Jerry", "Mike", 100.5, 200.3, 150.7)
 */
fun addDistances(athleteSet: MutableSet<Any>, distances: List<Float>): MutableSet<Any> {

    // Iterate over each distance in the list
    for (distance in distances) {
        // Add each distance as a new element to the athlete set
        athleteSet.add(distance)
    }
    return athleteSet
}
/**
 * This function takes a set of athletes and a list of distances and adds each distance as a new element to the set.
 *
 * @param athleteSet A set containing the athletes.
 * @param distances A list of distances to be added to the set.
 * @return The updated set of athletes with the distances added.
 *
 * Example:
 * addDistances(setOf("Tom", "Jerry", "Mike"), listOf(100.5, 200.3, 150.7))
 * Output: setOf("Tom", "Jerry", "Mike", 100.5, 200.3, 150.7)
 */
fun addDistances(athleteSet: MutableSet<Any>, distances: List<Float>): MutableSet<Any> {
/**
 * This function takes a set of athletes and a list of distances and adds each distance as a new element to the set.
 *
 * @param athleteSet A set containing the athletes.
 * @param distances A list of distances to be added to the set.
 * @return The updated set of athletes with the distances added.
 *
 * Example:
 * addDistances(setOf("Tom", "Jerry", "Mike"), listOf(100.5, 200.3, 150.7))
 * Output: setOf("Tom", "Jerry", "Mike", 100.5, 200.3, 150.7)
 */
fun addDistances(athleteSet: MutableSet<Any>, distances: List<Float>): MutableSet<Any> {

    // Iterate over each distance in the list
    for (distance in distances) {
        // Add each distance as a new element to the athlete set
        athleteSet.add(distance)
    }
    return athleteSet
}