/**
 * Given two lists, find the common elements between them using list comprehension.
 *
 * @param list1 A list of integers representing elements.
 * @param list2 A list of integers representing elements.
 * @return A list of common elements between the input lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    return list1.filter { it in list2 }
}
/**
 * Given two lists, find the common elements between them using list comprehension.
 *
 * @param list1 A list of integers representing elements.
 * @param list2 A list of integers representing elements.
 * @return A list of common elements between the input lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * Given two lists, find the common elements between them using list comprehension.
 *
 * @param list1 A list of integers representing elements.
 * @param list2 A list of integers representing elements.
 * @return A list of common elements between the input lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    return list1.filter { it in list2 }
}