/**
 * Given two lists of data, perform the following tasks:
 * - Create a copy of the first list.
 * - Format all elements in the second list to have two decimal places and store them in a new list.
 * - Return the copy of the first list and the formatted list as a Pair.
 *
 * @param list1 The original list of data.
 * @param list2 The list containing data to be formatted.
 * @return A Pair containing the copy of the first list and the formatted list.
 *
 * Example:
 * Given the following input:
 * list1 = [1, 2, 3, 4]
 * list2 = [12.345, 678.9, 1234.56789, 0.1]
 *
 * The function should return:
 * ([1, 2, 3, 4], ['12.35', '678.90', '1234.57', '0.10'])
 */
fun copyAndFormatData(list1: List<Int>, list2: List<Double>): Pair<List<Int>, List<String>> {

    val copyList = list1.toMutableList()
    val formattedList = list2.map { "%.2f".format(it) }
    return copyList to formattedList
}
/**
 * Given two lists of data, perform the following tasks:
 * - Create a copy of the first list.
 * - Format all elements in the second list to have two decimal places and store them in a new list.
 * - Return the copy of the first list and the formatted list as a Pair.
 *
 * @param list1 The original list of data.
 * @param list2 The list containing data to be formatted.
 * @return A Pair containing the copy of the first list and the formatted list.
 *
 * Example:
 * Given the following input:
 * list1 = [1, 2, 3, 4]
 * list2 = [12.345, 678.9, 1234.56789, 0.1]
 *
 * The function should return:
 * ([1, 2, 3, 4], ['12.35', '678.90', '1234.57', '0.10'])
 */
fun copyAndFormatData(list1: List<Int>, list2: List<Double>): Pair<List<Int>, List<String>> {
/**
 * Given two lists of data, perform the following tasks:
 * - Create a copy of the first list.
 * - Format all elements in the second list to have two decimal places and store them in a new list.
 * - Return the copy of the first list and the formatted list as a Pair.
 *
 * @param list1 The original list of data.
 * @param list2 The list containing data to be formatted.
 * @return A Pair containing the copy of the first list and the formatted list.
 *
 * Example:
 * Given the following input:
 * list1 = [1, 2, 3, 4]
 * list2 = [12.345, 678.9, 1234.56789, 0.1]
 *
 * The function should return:
 * ([1, 2, 3, 4], ['12.35', '678.90', '1234.57', '0.10'])
 */
fun copyAndFormatData(list1: List<Int>, list2: List<Double>): Pair<List<Int>, List<String>> {

    val copyList = list1.toMutableList()
    val formattedList = list2.map { "%.2f".format(it) }
    return copyList to formattedList
}