/**
 * Given two lists 'rockLayers" and 'mineralCompositions`, merges the two lists into a single list.
 * The merged list contains pairs, where each pair contains the rock layer from 'rockLayers" and its corresponding mineral composition from 'mineralCompositions`.
 *
 * @param rockLayers List of rock layers.
 * @param mineralCompositions List of mineral compositions corresponding to each rock layer.
 * @return Merged list with pairs of rock layers and their mineral compositions.
 */
fun mergeLists(rockLayers: List<String>, mineralCompositions: List<String>): List<Pair<String, String>> {

    // Use zip to merge the two lists into pairs
    return rockLayers.zip(mineralCompositions)
}
/**
 * Given two lists 'rockLayers" and 'mineralCompositions`, merges the two lists into a single list.
 * The merged list contains pairs, where each pair contains the rock layer from 'rockLayers" and its corresponding mineral composition from 'mineralCompositions`.
 *
 * @param rockLayers List of rock layers.
 * @param mineralCompositions List of mineral compositions corresponding to each rock layer.
 * @return Merged list with pairs of rock layers and their mineral compositions.
 */
fun mergeLists(rockLayers: List<String>, mineralCompositions: List<String>): List<Pair<String, String>> {
/**
 * Given two lists 'rockLayers" and 'mineralCompositions`, merges the two lists into a single list.
 * The merged list contains pairs, where each pair contains the rock layer from 'rockLayers" and its corresponding mineral composition from 'mineralCompositions`.
 *
 * @param rockLayers List of rock layers.
 * @param mineralCompositions List of mineral compositions corresponding to each rock layer.
 * @return Merged list with pairs of rock layers and their mineral compositions.
 */
fun mergeLists(rockLayers: List<String>, mineralCompositions: List<String>): List<Pair<String, String>> {

    // Use zip to merge the two lists into pairs
    return rockLayers.zip(mineralCompositions)
}