/**
 * This function takes two lists of actor and actress names and returns a tuple containing the intersection of both lists.
 *
 * @param list1 The first list of actor names
 * @param list2 The second list of actress names
 * @return A tuple containing the names present in both actor and actress lists.
 */
fun actorActressNames(list1: List<String>, list2: List<String>): List<String> {

    // Kotlin code to solve the exercise
    val intersection = list1.intersect(list2).toList() // Get the common names using list intersection
    return intersection
}
/**
 * This function takes two lists of actor and actress names and returns a tuple containing the intersection of both lists.
 *
 * @param list1 The first list of actor names
 * @param list2 The second list of actress names
 * @return A tuple containing the names present in both actor and actress lists.
 */
fun actorActressNames(list1: List<String>, list2: List<String>): List<String> {
/**
 * This function takes two lists of actor and actress names and returns a tuple containing the intersection of both lists.
 *
 * @param list1 The first list of actor names
 * @param list2 The second list of actress names
 * @return A tuple containing the names present in both actor and actress lists.
 */
fun actorActressNames(list1: List<String>, list2: List<String>): List<String> {

    // Kotlin code to solve the exercise
    val intersection = list1.intersect(list2).toList() // Get the common names using list intersection
    return intersection
}