/**
 * A farmer has a list of fields with different crops and their quantity.
 * Write a function that calculates the total number of all crops on the farm.
 * Return the total number of crops on the farm.
 *
 * @param farm A list of pairs where each pair represents a field and its crop quantity.
 * @return The total number of all crops on the farm.
 */
fun calculateTotalCrops(farm: List<Pair<String, Int>>): Int {

    var totalCrops = 0

    for (field in farm) {
        totalCrops += field.second
    }

    return totalCrops
}
/**
 * A farmer has a list of fields with different crops and their quantity.
 * Write a function that calculates the total number of all crops on the farm.
 * Return the total number of crops on the farm.
 *
 * @param farm A list of pairs where each pair represents a field and its crop quantity.
 * @return The total number of all crops on the farm.
 */
fun calculateTotalCrops(farm: List<Pair<String, Int>>): Int {
/**
 * A farmer has a list of fields with different crops and their quantity.
 * Write a function that calculates the total number of all crops on the farm.
 * Return the total number of crops on the farm.
 *
 * @param farm A list of pairs where each pair represents a field and its crop quantity.
 * @return The total number of all crops on the farm.
 */
fun calculateTotalCrops(farm: List<Pair<String, Int>>): Int {

    var totalCrops = 0

    for (field in farm) {
        totalCrops += field.second
    }

    return totalCrops
}