/**
 * This function finds the common crops between two farmers.
 *
 * @param farmer1_crops List of crops grown by farmer 1
 * @param farmer2_crops List of crops grown by farmer 2
 * @return List of common crops grown by both farmers
 */
fun findCommonCrops(farmer1_crops: List<String>, farmer2_crops: List<String>): List<String> {

    val commonCrops = mutableListOf<String>()

    for (crop in farmer1_crops) {
        if (crop !in farmer2_crops) {
            continue  // Skip to the next iteration if crop not in farmer2_crops
        }

        commonCrops.add(crop)
    }

    return commonCrops
}
/**
 * This function finds the common crops between two farmers.
 *
 * @param farmer1_crops List of crops grown by farmer 1
 * @param farmer2_crops List of crops grown by farmer 2
 * @return List of common crops grown by both farmers
 */
fun findCommonCrops(farmer1_crops: List<String>, farmer2_crops: List<String>): List<String> {
/**
 * This function finds the common crops between two farmers.
 *
 * @param farmer1_crops List of crops grown by farmer 1
 * @param farmer2_crops List of crops grown by farmer 2
 * @return List of common crops grown by both farmers
 */
fun findCommonCrops(farmer1_crops: List<String>, farmer2_crops: List<String>): List<String> {

    val commonCrops = mutableListOf<String>()

    for (crop in farmer1_crops) {
        if (crop !in farmer2_crops) {
            continue  // Skip to the next iteration if crop not in farmer2_crops
        }

        commonCrops.add(crop)
    }

    return commonCrops
}