/**
 * A Geologist needs to extract minerals from a list of rock samples. Each rock sample is represented as a pair
 * with two elements: the type of rock and the amount of minerals it contains.
 *
 * You need to write a function that takes in the sampleData list and returns a new list containing only the
 * rock samples with a high amount of minerals. A rock sample is considered to have a high amount of minerals
 * if the second element of the pair is greater than or equal to 50.
 *
 * @param sampleData List of rock samples
 * @return List of rock samples with high mineral amounts
 */
fun extractMineralSamples(sampleData: List<Pair<String, Int>>): List<Pair<String, Int>> {

    val highMineralSamples = mutableListOf<Pair<String, Int>>() // List to store the rock samples with high mineral amounts

    for (sample in sampleData) {
        if (sample.second >= 50) {
            highMineralSamples.add(sample)
        }
    }

    return highMineralSamples
}
/**
 * A Geologist needs to extract minerals from a list of rock samples. Each rock sample is represented as a pair
 * with two elements: the type of rock and the amount of minerals it contains.
 *
 * You need to write a function that takes in the sampleData list and returns a new list containing only the
 * rock samples with a high amount of minerals. A rock sample is considered to have a high amount of minerals
 * if the second element of the pair is greater than or equal to 50.
 *
 * @param sampleData List of rock samples
 * @return List of rock samples with high mineral amounts
 */
fun extractMineralSamples(sampleData: List<Pair<String, Int>>): List<Pair<String, Int>> {
/**
 * A Geologist needs to extract minerals from a list of rock samples. Each rock sample is represented as a pair
 * with two elements: the type of rock and the amount of minerals it contains.
 *
 * You need to write a function that takes in the sampleData list and returns a new list containing only the
 * rock samples with a high amount of minerals. A rock sample is considered to have a high amount of minerals
 * if the second element of the pair is greater than or equal to 50.
 *
 * @param sampleData List of rock samples
 * @return List of rock samples with high mineral amounts
 */
fun extractMineralSamples(sampleData: List<Pair<String, Int>>): List<Pair<String, Int>> {

    val highMineralSamples = mutableListOf<Pair<String, Int>>() // List to store the rock samples with high mineral amounts

    for (sample in sampleData) {
        if (sample.second >= 50) {
            highMineralSamples.add(sample)
        }
    }

    return highMineralSamples
}