/**
 * As a farmer, you want to find the crops that are suitable for your farm considering various factors.
 *
 * @param farmSize the size of your farm in acres.
 * @param weatherConditions a map containing the average temperature and rainfall in your area.
 * @param landQuality a list of pairs containing the land quality in different parts of your farm.
 * @return a list of crops that are suitable for your farm based on the given conditions.
 */
fun findAvailableCrops(farmSize: Int, weatherConditions: Map<String, Int>, landQuality: List<Pair<String, String>>): List<String> {

    // Check if the farm size is small
    if (farmSize < 10) {
        // Check if the temperature is between 20 and 30 degrees and rainfall is between 100 and 200 mm
        if (weatherConditions["temperature"] in 20..30 && weatherConditions["rainfall"] in 100..200) {
            // Filter out crops that require high-quality land
            val availableCrops = landQuality.filter { it.second != "high" }.map { it.first }
            return availableCrops
        }
    }

    // Check if the farm size is medium
    // Add your medium farm size conditions here

    return emptyList()
}
/**
 * As a farmer, you want to find the crops that are suitable for your farm considering various factors.
 *
 * @param farmSize the size of your farm in acres.
 * @param weatherConditions a map containing the average temperature and rainfall in your area.
 * @param landQuality a list of pairs containing the land quality in different parts of your farm.
 * @return a list of crops that are suitable for your farm based on the given conditions.
 */
fun findAvailableCrops(farmSize: Int, weatherConditions: Map<String, Int>, landQuality: List<Pair<String, String>>): List<String> {
/**
 * As a farmer, you want to find the crops that are suitable for your farm considering various factors.
 *
 * @param farmSize the size of your farm in acres.
 * @param weatherConditions a map containing the average temperature and rainfall in your area.
 * @param landQuality a list of pairs containing the land quality in different parts of your farm.
 * @return a list of crops that are suitable for your farm based on the given conditions.
 */
fun findAvailableCrops(farmSize: Int, weatherConditions: Map<String, Int>, landQuality: List<Pair<String, String>>): List<String> {

    // Check if the farm size is small
    if (farmSize < 10) {
        // Check if the temperature is between 20 and 30 degrees and rainfall is between 100 and 200 mm
        if (weatherConditions["temperature"] in 20..30 && weatherConditions["rainfall"] in 100..200) {
            // Filter out crops that require high-quality land
            val availableCrops = landQuality.filter { it.second != "high" }.map { it.first }
            return availableCrops
        }
    }

    // Check if the farm size is medium
    // Add your medium farm size conditions here

    return emptyList()
}