/**
 * Accepts the yield per acre of different crops and the land area allocated to each crop.
 * Returns the total harvest of all crops.
 */
fun calculateHarvest(yieldPerAcre: Map<String, Int>, landArea: Map<String, Int>): Int {

    var harvest = 0
    for ((crop, yield) in yieldPerAcre) {
        harvest += yield * (landArea[crop] ?: 0)
    }
    return harvest
}
/**
 * Accepts the yield per acre of different crops and the land area allocated to each crop.
 * Returns the total harvest of all crops.
 */
fun calculateHarvest(yieldPerAcre: Map<String, Int>, landArea: Map<String, Int>): Int {
/**
 * Accepts the yield per acre of different crops and the land area allocated to each crop.
 * Returns the total harvest of all crops.
 */
fun calculateHarvest(yieldPerAcre: Map<String, Int>, landArea: Map<String, Int>): Int {

    var harvest = 0
    for ((crop, yield) in yieldPerAcre) {
        harvest += yield * (landArea[crop] ?: 0)
    }
    return harvest
}