/**
 * This function appends the selected furniture items to the furniture list.
 *
 * @param furnitureList The list of furniture items.
 * @param selectedItems The list of selected furniture items.
 * @return The updated furniture list containing the selected items.
 *
 * Example:
 * val furniture = mutableListOf("chair", "table", "sofa")
 * val selected = listOf("lamp", "mirror")
 * appendSelectedItems(furniture, selected)
 * // Output: ["chair", "table", "sofa", "lamp", "mirror"]
 */
fun appendSelectedItems(furnitureList: MutableList<String>, selectedItems: List<String>): List<String> {

    // Iterate over each selected item
    for (item in selectedItems) {
        // Append the item to the furniture list
        furnitureList.add(item)
    }
    return furnitureList
}
/**
 * This function appends the selected furniture items to the furniture list.
 *
 * @param furnitureList The list of furniture items.
 * @param selectedItems The list of selected furniture items.
 * @return The updated furniture list containing the selected items.
 *
 * Example:
 * val furniture = mutableListOf("chair", "table", "sofa")
 * val selected = listOf("lamp", "mirror")
 * appendSelectedItems(furniture, selected)
 * // Output: ["chair", "table", "sofa", "lamp", "mirror"]
 */
fun appendSelectedItems(furnitureList: MutableList<String>, selectedItems: List<String>): List<String> {
/**
 * This function appends the selected furniture items to the furniture list.
 *
 * @param furnitureList The list of furniture items.
 * @param selectedItems The list of selected furniture items.
 * @return The updated furniture list containing the selected items.
 *
 * Example:
 * val furniture = mutableListOf("chair", "table", "sofa")
 * val selected = listOf("lamp", "mirror")
 * appendSelectedItems(furniture, selected)
 * // Output: ["chair", "table", "sofa", "lamp", "mirror"]
 */
fun appendSelectedItems(furnitureList: MutableList<String>, selectedItems: List<String>): List<String> {

    // Iterate over each selected item
    for (item in selectedItems) {
        // Append the item to the furniture list
        furnitureList.add(item)
    }
    return furnitureList
}