/**
 * This function takes in two lists and returns a new list containing the elements that are common to both lists.
 */
fun numIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (num1 in lst1) {
        for (num2 in lst2) {
            if (num1 % num2 == 0) {
                intersection.add(num1)
                break
            }
        }
    }

    return intersection
}
/**
 * This function takes in two lists and returns a new list containing the elements that are common to both lists.
 */
fun numIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {
/**
 * This function takes in two lists and returns a new list containing the elements that are common to both lists.
 */
fun numIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (num1 in lst1) {
        for (num2 in lst2) {
            if (num1 % num2 == 0) {
                intersection.add(num1)
                break
            }
        }
    }

    return intersection
}