/**
 * This function takes in two lists of numbers and returns the product of the numbers that are present in both lists.
 *
 * @param numbersList1 A list of numbers
 * @param numbersList2 A list of numbers
 * @return The product of numbers present in both lists
 */
fun productOfNumbers(numbersList1: List<Int>, numbersList2: List<Int>): Int {

    var product = 1  // Initialize the product to 1

    // Iterate over each number in the first list
    for (num1 in numbersList1) {
        // Iterate over each number in the second list
        for (num2 in numbersList2) {
            // Check if the numbers in both lists are equal
            if (num1 == num2) {
                // Multiply the product by the common number
                product *= num1
            }
        }
    }

    return product
}
/**
 * This function takes in two lists of numbers and returns the product of the numbers that are present in both lists.
 *
 * @param numbersList1 A list of numbers
 * @param numbersList2 A list of numbers
 * @return The product of numbers present in both lists
 */
fun productOfNumbers(numbersList1: List<Int>, numbersList2: List<Int>): Int {
/**
 * This function takes in two lists of numbers and returns the product of the numbers that are present in both lists.
 *
 * @param numbersList1 A list of numbers
 * @param numbersList2 A list of numbers
 * @return The product of numbers present in both lists
 */
fun productOfNumbers(numbersList1: List<Int>, numbersList2: List<Int>): Int {

    var product = 1  // Initialize the product to 1

    // Iterate over each number in the first list
    for (num1 in numbersList1) {
        // Iterate over each number in the second list
        for (num2 in numbersList2) {
            // Check if the numbers in both lists are equal
            if (num1 == num2) {
                // Multiply the product by the common number
                product *= num1
            }
        }
    }

    return product
}