/**
 * This exercise involves finding the names of graphic designers who are both experienced and adult.
 * The graphicDesignerNames list contains the names of graphic designers, while the graphicDesignerAges list contains their respective ages.
 * Your task is to implement a function that returns a list of the names of experienced adult graphic designers.
 *
 * @param graphicDesignerNames A list of strings representing the names of graphic designers.
 * @param graphicDesignerAges A list of integers representing the ages of graphic designers.
 * @return A list of the names of experienced adult graphic designers.
 */
fun intersectionOfSlicingAndAndOperator(graphicDesignerNames: List<String>, graphicDesignerAges: List<Int>): List<String> {

    val experiencedAdultGraphicDesigners = mutableListOf<String>()

    for (i in graphicDesignerNames.indices) {
        if (graphicDesignerAges[i] >= 18 && graphicDesignerAges[i] <= 60) {
            experiencedAdultGraphicDesigners.add(graphicDesignerNames[i])
        }
    }

    return experiencedAdultGraphicDesigners
}
/**
 * This exercise involves finding the names of graphic designers who are both experienced and adult.
 * The graphicDesignerNames list contains the names of graphic designers, while the graphicDesignerAges list contains their respective ages.
 * Your task is to implement a function that returns a list of the names of experienced adult graphic designers.
 *
 * @param graphicDesignerNames A list of strings representing the names of graphic designers.
 * @param graphicDesignerAges A list of integers representing the ages of graphic designers.
 * @return A list of the names of experienced adult graphic designers.
 */
fun intersectionOfSlicingAndAndOperator(graphicDesignerNames: List<String>, graphicDesignerAges: List<Int>): List<String> {
/**
 * This exercise involves finding the names of graphic designers who are both experienced and adult.
 * The graphicDesignerNames list contains the names of graphic designers, while the graphicDesignerAges list contains their respective ages.
 * Your task is to implement a function that returns a list of the names of experienced adult graphic designers.
 *
 * @param graphicDesignerNames A list of strings representing the names of graphic designers.
 * @param graphicDesignerAges A list of integers representing the ages of graphic designers.
 * @return A list of the names of experienced adult graphic designers.
 */
fun intersectionOfSlicingAndAndOperator(graphicDesignerNames: List<String>, graphicDesignerAges: List<Int>): List<String> {

    val experiencedAdultGraphicDesigners = mutableListOf<String>()

    for (i in graphicDesignerNames.indices) {
        if (graphicDesignerAges[i] >= 18 && graphicDesignerAges[i] <= 60) {
            experiencedAdultGraphicDesigners.add(graphicDesignerNames[i])
        }
    }

    return experiencedAdultGraphicDesigners
}