/**
 * This exercise challenges you to find the intersection of two tuples.
 * The function takes in two parameters: names_articles (a tuple) and names_journalist (a tuple).
 * The task is to find the names that are present in both tuples and return them in a new tuple.
 */
fun intersectionOfTuples(namesArticles: List<String>, namesJournalist: List<String>): List<String> {

    val intersection = mutableListOf<String>()

    for (nameArticle in namesArticles) {
        for (nameJournalist in namesJournalist) {
            if (nameArticle == nameJournalist) {
                intersection.add(nameArticle)
            }
        }
    }

    return intersection
}
/**
 * This exercise challenges you to find the intersection of two tuples.
 * The function takes in two parameters: names_articles (a tuple) and names_journalist (a tuple).
 * The task is to find the names that are present in both tuples and return them in a new tuple.
 */
fun intersectionOfTuples(namesArticles: List<String>, namesJournalist: List<String>): List<String> {
/**
 * This exercise challenges you to find the intersection of two tuples.
 * The function takes in two parameters: names_articles (a tuple) and names_journalist (a tuple).
 * The task is to find the names that are present in both tuples and return them in a new tuple.
 */
fun intersectionOfTuples(namesArticles: List<String>, namesJournalist: List<String>): List<String> {

    val intersection = mutableListOf<String>()

    for (nameArticle in namesArticles) {
        for (nameJournalist in namesJournalist) {
            if (nameArticle == nameJournalist) {
                intersection.add(nameArticle)
            }
        }
    }

    return intersection
}