/**
 * This function finds the common elements between two lists of graphic design tools.
 *
 * @param list1 The first list of graphic design tools.
 * @param list2 The second list of graphic design tools.
 * @return A list of common graphic design tools present in both lists.
 */
fun findCommonElements(list1: List<String>, list2: List<String>): List<String> {

    // Convert both lists to sets for efficient membership checking
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find the common elements using intersection of sets
    val commonElements = set1.intersect(set2).toList()

    return commonElements
}
/**
 * This function finds the common elements between two lists of graphic design tools.
 *
 * @param list1 The first list of graphic design tools.
 * @param list2 The second list of graphic design tools.
 * @return A list of common graphic design tools present in both lists.
 */
fun findCommonElements(list1: List<String>, list2: List<String>): List<String> {
/**
 * This function finds the common elements between two lists of graphic design tools.
 *
 * @param list1 The first list of graphic design tools.
 * @param list2 The second list of graphic design tools.
 * @return A list of common graphic design tools present in both lists.
 */
fun findCommonElements(list1: List<String>, list2: List<String>): List<String> {

    // Convert both lists to sets for efficient membership checking
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find the common elements using intersection of sets
    val commonElements = set1.intersect(set2).toList()

    return commonElements
}