/**
 * Write a function that calculates the average speed of an athlete given a list of distances and times.
 *
 * @param distance A list of distances (in meters) covered by the athlete
 * @param time A list of times (in minutes) taken to cover the distances
 * @return The average speed of the athlete in meters per minute
 */
fun calculateAverageSpeed(distance: List<Double>, time: List<Double>): Double {

    var totalDistance = 0.0
    var totalTime = 0.0

    for (d in distance) {
        totalDistance += d
    }

    for (t in time) {
        totalTime += t
    }

    val averageSpeed = totalDistance / totalTime

    return averageSpeed
}
/**
 * Write a function that calculates the average speed of an athlete given a list of distances and times.
 *
 * @param distance A list of distances (in meters) covered by the athlete
 * @param time A list of times (in minutes) taken to cover the distances
 * @return The average speed of the athlete in meters per minute
 */
fun calculateAverageSpeed(distance: List<Double>, time: List<Double>): Double {
/**
 * Write a function that calculates the average speed of an athlete given a list of distances and times.
 *
 * @param distance A list of distances (in meters) covered by the athlete
 * @param time A list of times (in minutes) taken to cover the distances
 * @return The average speed of the athlete in meters per minute
 */
fun calculateAverageSpeed(distance: List<Double>, time: List<Double>): Double {

    var totalDistance = 0.0
    var totalTime = 0.0

    for (d in distance) {
        totalDistance += d
    }

    for (t in time) {
        totalTime += t
    }

    val averageSpeed = totalDistance / totalTime

    return averageSpeed
}