/**
 * Define a function that takes a lawyer and an amount as input and adds the amount to the lawyer's salary using 
 * the addition assignment operator. The lawyer's salary is represented as a list containing the base salary and any 
 * additional bonuses or benefits.
 *
 * @param lawyer A list representing the lawyer's salary. The first element is the base salary (Double) and the rest
 *               are additional bonuses or benefits (Double).
 * @param amount The amount to be added to the lawyer's salary.
 * @return A list representing the updated lawyer's salary after adding the amount to it.
 *
 * Example:
 * lawyer = mutableListOf(50000.0, 1000.0, 500.0)
 * amount = 2000.0
 * tupleAdditionAssignment(lawyer, amount) // [52000.0, 1000.0, 500.0]
 *
 * Note: The function should modify the original list, not creating a new one.
 */
fun tupleAdditionAssignment(lawyer: MutableList<Double>, amount: Double): MutableList<Double> {

    lawyer[0] += amount
    return lawyer
}
/**
 * Define a function that takes a lawyer and an amount as input and adds the amount to the lawyer's salary using 
 * the addition assignment operator. The lawyer's salary is represented as a list containing the base salary and any 
 * additional bonuses or benefits.
 *
 * @param lawyer A list representing the lawyer's salary. The first element is the base salary (Double) and the rest
 *               are additional bonuses or benefits (Double).
 * @param amount The amount to be added to the lawyer's salary.
 * @return A list representing the updated lawyer's salary after adding the amount to it.
 *
 * Example:
 * lawyer = mutableListOf(50000.0, 1000.0, 500.0)
 * amount = 2000.0
 * tupleAdditionAssignment(lawyer, amount) // [52000.0, 1000.0, 500.0]
 *
 * Note: The function should modify the original list, not creating a new one.
 */
fun tupleAdditionAssignment(lawyer: MutableList<Double>, amount: Double): MutableList<Double> {
/**
 * Define a function that takes a lawyer and an amount as input and adds the amount to the lawyer's salary using 
 * the addition assignment operator. The lawyer's salary is represented as a list containing the base salary and any 
 * additional bonuses or benefits.
 *
 * @param lawyer A list representing the lawyer's salary. The first element is the base salary (Double) and the rest
 *               are additional bonuses or benefits (Double).
 * @param amount The amount to be added to the lawyer's salary.
 * @return A list representing the updated lawyer's salary after adding the amount to it.
 *
 * Example:
 * lawyer = mutableListOf(50000.0, 1000.0, 500.0)
 * amount = 2000.0
 * tupleAdditionAssignment(lawyer, amount) // [52000.0, 1000.0, 500.0]
 *
 * Note: The function should modify the original list, not creating a new one.
 */
fun tupleAdditionAssignment(lawyer: MutableList<Double>, amount: Double): MutableList<Double> {

    lawyer[0] += amount
    return lawyer
}