/**
 * This function takes two lists of farm products from two different farmers and returns a new list with the common farm products.
 * @param farmer1Products A list of farm products of the first farmer.
 * @param farmer2Products A list of farm products of the second farmer.
 * @return A list of common farm products between the two farmers.
 */
fun findCommonElements(farmer1Products: List<String>, farmer2Products: List<String>): List<String> {

    val commonProducts = mutableListOf<String>()
    for (product in farmer1Products) {
        if (product in farmer2Products) {
            commonProducts.add(product)
        }
    }
    return commonProducts
}
/**
 * This function takes two lists of farm products from two different farmers and returns a new list with the common farm products.
 * @param farmer1Products A list of farm products of the first farmer.
 * @param farmer2Products A list of farm products of the second farmer.
 * @return A list of common farm products between the two farmers.
 */
fun findCommonElements(farmer1Products: List<String>, farmer2Products: List<String>): List<String> {
/**
 * This function takes two lists of farm products from two different farmers and returns a new list with the common farm products.
 * @param farmer1Products A list of farm products of the first farmer.
 * @param farmer2Products A list of farm products of the second farmer.
 * @return A list of common farm products between the two farmers.
 */
fun findCommonElements(farmer1Products: List<String>, farmer2Products: List<String>): List<String> {

    val commonProducts = mutableListOf<String>()
    for (product in farmer1Products) {
        if (product in farmer2Products) {
            commonProducts.add(product)
        }
    }
    return commonProducts
}