/**
 * This function takes two lists as input and returns a new list containing the common elements 
 * from both lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    // TODO: Implement the code to find common elements from both lists
    for (num1 in list1) {
        for (num2 in list2) {
            if (num1 == num2) {
                commonElements.add(num1)
            }
        }
    }

    return commonElements
}
/**
 * This function takes two lists as input and returns a new list containing the common elements 
 * from both lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * This function takes two lists as input and returns a new list containing the common elements 
 * from both lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    // TODO: Implement the code to find common elements from both lists
    for (num1 in list1) {
        for (num2 in list2) {
            if (num1 == num2) {
                commonElements.add(num1)
            }
        }
    }

    return commonElements
}