/**
 * Given an original list and a list of numbers, append the double of each number to the original list.
 *
 * @param originalList The original list of elements.
 * @param numbers The list of numbers to be doubled and appended.
 * @return The modified original list with the double of each number appended.
 */
fun appendDoubleNumbers(originalList: MutableList<Int>, numbers: List<Int>): MutableList<Int> {

    // Iterate over each number in the given list
    for (number in numbers) {
        // Calculate the double of the number
        val doubleNumber = number * 2
        // Append the double of the number to the original list
        originalList.add(doubleNumber)
    }

    return originalList
}
/**
 * Given an original list and a list of numbers, append the double of each number to the original list.
 *
 * @param originalList The original list of elements.
 * @param numbers The list of numbers to be doubled and appended.
 * @return The modified original list with the double of each number appended.
 */
fun appendDoubleNumbers(originalList: MutableList<Int>, numbers: List<Int>): MutableList<Int> {
/**
 * Given an original list and a list of numbers, append the double of each number to the original list.
 *
 * @param originalList The original list of elements.
 * @param numbers The list of numbers to be doubled and appended.
 * @return The modified original list with the double of each number appended.
 */
fun appendDoubleNumbers(originalList: MutableList<Int>, numbers: List<Int>): MutableList<Int> {

    // Iterate over each number in the given list
    for (number in numbers) {
        // Calculate the double of the number
        val doubleNumber = number * 2
        // Append the double of the number to the original list
        originalList.add(doubleNumber)
    }

    return originalList
}