/**
 * A farmer has earned income from selling pumpkins and corn. The function takes the revenue earned from selling pumpkins and corn respectively as input and calculates the total income earned by the farmer.
 *
 * In this exercise, you need to:
 * 1. Create a Pair called 'revenues" using parentheses that contains the revenue earned from selling pumpkins and corn.
 * 2. Use the addition assignment operator to add both revenue values and store the result in the variable 'totalIncome`.
 * 3. Return the 'totalIncome`.
 */
fun addFarmingIncome(pumpkinRevenue: Int, cornRevenue: Int): Int {

    // Create a Pair using parentheses to store revenue values
    val revenues = Pair(pumpkinRevenue, cornRevenue)

    // Use the addition assignment operator to calculate total income
    var totalIncome = 0
    totalIncome += revenues.first
    totalIncome += revenues.second

    // Return the total income earned by the farmer
    return totalIncome
}
/**
 * A farmer has earned income from selling pumpkins and corn. The function takes the revenue earned from selling pumpkins and corn respectively as input and calculates the total income earned by the farmer.
 *
 * In this exercise, you need to:
 * 1. Create a Pair called 'revenues" using parentheses that contains the revenue earned from selling pumpkins and corn.
 * 2. Use the addition assignment operator to add both revenue values and store the result in the variable 'totalIncome`.
 * 3. Return the 'totalIncome`.
 */
fun addFarmingIncome(pumpkinRevenue: Int, cornRevenue: Int): Int {
/**
 * A farmer has earned income from selling pumpkins and corn. The function takes the revenue earned from selling pumpkins and corn respectively as input and calculates the total income earned by the farmer.
 *
 * In this exercise, you need to:
 * 1. Create a Pair called 'revenues" using parentheses that contains the revenue earned from selling pumpkins and corn.
 * 2. Use the addition assignment operator to add both revenue values and store the result in the variable 'totalIncome`.
 * 3. Return the 'totalIncome`.
 */
fun addFarmingIncome(pumpkinRevenue: Int, cornRevenue: Int): Int {

    // Create a Pair using parentheses to store revenue values
    val revenues = Pair(pumpkinRevenue, cornRevenue)

    // Use the addition assignment operator to calculate total income
    var totalIncome = 0
    totalIncome += revenues.first
    totalIncome += revenues.second

    // Return the total income earned by the farmer
    return totalIncome
}