/**
 * Given two lists of geological samples, this function finds the common elements between them.
 *
 * @param list1 The first list of geological samples.
 * @param list2 The second list of geological samples.
 * @return A list containing the common elements found in both lists.
 */
fun findCommonElement(list1: List<String>, list2: List<String>): List<String> {

    val commonElements = mutableListOf<String>()

    for (sample1 in list1) {
        for (sample2 in list2) {
            if (sample1 == sample2) {
                commonElements.add(sample1)
            }
        }
    }

    return commonElements
}
/**
 * Given two lists of geological samples, this function finds the common elements between them.
 *
 * @param list1 The first list of geological samples.
 * @param list2 The second list of geological samples.
 * @return A list containing the common elements found in both lists.
 */
fun findCommonElement(list1: List<String>, list2: List<String>): List<String> {
/**
 * Given two lists of geological samples, this function finds the common elements between them.
 *
 * @param list1 The first list of geological samples.
 * @param list2 The second list of geological samples.
 * @return A list containing the common elements found in both lists.
 */
fun findCommonElement(list1: List<String>, list2: List<String>): List<String> {

    val commonElements = mutableListOf<String>()

    for (sample1 in list1) {
        for (sample2 in list2) {
            if (sample1 == sample2) {
                commonElements.add(sample1)
            }
        }
    }

    return commonElements
}