/**
 * This function takes a list of strings and a list of numbers,
 * and returns the combined string and the sum of the numbers.
 *
 * @param strings A list of strings
 * @param numbers A list of numbers
 * @return A Pair containing the combined string and the sum of numbers
 *
 * Example:
 * combineStringsAndNumbers(listOf("Hello", "World"), listOf(1, 2, 3)) -> Pair("Hello World", 6)
 */
fun combineStringsAndNumbers(strings: List<String>, numbers: List<Int>): Pair<String, Int> {

    var combinedString = ""  // Initializing an empty string
    var sumOfNumbers = 0  // Initializing the sum of numbers

    // Loop through each string and add it to the combined string
    for (string in strings) {
        combinedString += string
    }

    // Loop through each number and add it to the sum
    for (number in numbers) {
        sumOfNumbers += number
    }

    return Pair(combinedString, sumOfNumbers)
}

// Example usage
/**
 * This function takes a list of strings and a list of numbers,
 * and returns the combined string and the sum of the numbers.
 *
 * @param strings A list of strings
 * @param numbers A list of numbers
 * @return A Pair containing the combined string and the sum of numbers
 *
 * Example:
 * combineStringsAndNumbers(listOf("Hello", "World"), listOf(1, 2, 3)) -> Pair("Hello World", 6)
 */
fun combineStringsAndNumbers(strings: List<String>, numbers: List<Int>): Pair<String, Int> {
/**
 * This function takes a list of strings and a list of numbers,
 * and returns the combined string and the sum of the numbers.
 *
 * @param strings A list of strings
 * @param numbers A list of numbers
 * @return A Pair containing the combined string and the sum of numbers
 *
 * Example:
 * combineStringsAndNumbers(listOf("Hello", "World"), listOf(1, 2, 3)) -> Pair("Hello World", 6)
 */
fun combineStringsAndNumbers(strings: List<String>, numbers: List<Int>): Pair<String, Int> {

    var combinedString = ""  // Initializing an empty string
    var sumOfNumbers = 0  // Initializing the sum of numbers

    // Loop through each string and add it to the combined string
    for (string in strings) {
        combinedString += string
    }

    // Loop through each number and add it to the sum
    for (number in numbers) {
        sumOfNumbers += number
    }

    return Pair(combinedString, sumOfNumbers)
}

// Example usage