/**
 * Given a tuple representing an athlete's performance in various sports events,
 * and an index, return the floating-point number at the specified index.
 *
 * The athlete is represented by a tuple where each element:
 * - Represents the athlete's performance in a specific sport
 * - Is a tuple of two elements:
 *   - The first element is the sport name (string)
 *   - The second element is the floating-point score achieved by the athlete in that sport
 *
 * Example:
 * athlete = (("Soccer", 8.5), ("Baseball", 7.2), ("Swimming", 9.8), ("Basketball", 6.3))
 * index = 2
 * intersectionOfFloatAndTuple(athlete, index) -> 9.8
 *
 * @param athlete Tuple representing the athlete's performance in various sports events
 * @param index Index to retrieve the floating-point number from the tuple
 * @return Floating-point number at the specified index
 */
fun intersectionOfFloatAndTuple(athlete: Array<Pair<String, Double>>, index: Int): Double {

    return athlete[index].second
}
/**
 * Given a tuple representing an athlete's performance in various sports events,
 * and an index, return the floating-point number at the specified index.
 *
 * The athlete is represented by a tuple where each element:
 * - Represents the athlete's performance in a specific sport
 * - Is a tuple of two elements:
 *   - The first element is the sport name (string)
 *   - The second element is the floating-point score achieved by the athlete in that sport
 *
 * Example:
 * athlete = (("Soccer", 8.5), ("Baseball", 7.2), ("Swimming", 9.8), ("Basketball", 6.3))
 * index = 2
 * intersectionOfFloatAndTuple(athlete, index) -> 9.8
 *
 * @param athlete Tuple representing the athlete's performance in various sports events
 * @param index Index to retrieve the floating-point number from the tuple
 * @return Floating-point number at the specified index
 */
fun intersectionOfFloatAndTuple(athlete: Array<Pair<String, Double>>, index: Int): Double {
/**
 * Given a tuple representing an athlete's performance in various sports events,
 * and an index, return the floating-point number at the specified index.
 *
 * The athlete is represented by a tuple where each element:
 * - Represents the athlete's performance in a specific sport
 * - Is a tuple of two elements:
 *   - The first element is the sport name (string)
 *   - The second element is the floating-point score achieved by the athlete in that sport
 *
 * Example:
 * athlete = (("Soccer", 8.5), ("Baseball", 7.2), ("Swimming", 9.8), ("Basketball", 6.3))
 * index = 2
 * intersectionOfFloatAndTuple(athlete, index) -> 9.8
 *
 * @param athlete Tuple representing the athlete's performance in various sports events
 * @param index Index to retrieve the floating-point number from the tuple
 * @return Floating-point number at the specified index
 */
fun intersectionOfFloatAndTuple(athlete: Array<Pair<String, Double>>, index: Int): Double {

    return athlete[index].second
}