/**
 * Given a list of coordinates and two new latitude and longitude values,
 * modify the elements of the list at the specified index using indexing
 * and return the modified list as a tuple.
 *
 * Hint: Use tuple unpacking in the return statement.
 */
fun addCoordinates(coordinates: MutableList<Double>, lat: Double, long: Double): Pair<Double, Double> {

    // Modify the latitude and longitude at the specified index
    coordinates[2] = lat
    coordinates[3] = long

    // Return the modified list as a tuple
    return Pair(coordinates[2], coordinates[3])
}
/**
 * Given a list of coordinates and two new latitude and longitude values,
 * modify the elements of the list at the specified index using indexing
 * and return the modified list as a tuple.
 *
 * Hint: Use tuple unpacking in the return statement.
 */
fun addCoordinates(coordinates: MutableList<Double>, lat: Double, long: Double): Pair<Double, Double> {
/**
 * Given a list of coordinates and two new latitude and longitude values,
 * modify the elements of the list at the specified index using indexing
 * and return the modified list as a tuple.
 *
 * Hint: Use tuple unpacking in the return statement.
 */
fun addCoordinates(coordinates: MutableList<Double>, lat: Double, long: Double): Pair<Double, Double> {

    // Modify the latitude and longitude at the specified index
    coordinates[2] = lat
    coordinates[3] = long

    // Return the modified list as a tuple
    return Pair(coordinates[2], coordinates[3])
}