/**
 * Given a list of numbers, find the sum of all the even numbers and count how many odd numbers are present in the list.
 * Use a for loop to iterate through the list and combine it with other functions to solve the exercise.
 *
 * @param numList A list of numbers.
 * @return A tuple with two elements - the sum of all even numbers and the count of odd numbers.
 */
fun combineFunctions(numList: List<Int>): Pair<Int, Int> {

    var evenSum = 0
    var oddCount = 0

    // Iterate over each number in the list
    for (num in numList) {
        // Add your code here:
        // 1. Check if the number is even using a function.
        // 2. If it is even, add it to the evenSum using another function.
        // 3. If it is odd, increment the oddCount using another function.
    }

    return Pair(evenSum, oddCount)
}

// Example usage
/**
 * Given a list of numbers, find the sum of all the even numbers and count how many odd numbers are present in the list.
 * Use a for loop to iterate through the list and combine it with other functions to solve the exercise.
 *
 * @param numList A list of numbers.
 * @return A tuple with two elements - the sum of all even numbers and the count of odd numbers.
 */
fun combineFunctions(numList: List<Int>): Pair<Int, Int> {
/**
 * Given a list of numbers, find the sum of all the even numbers and count how many odd numbers are present in the list.
 * Use a for loop to iterate through the list and combine it with other functions to solve the exercise.
 *
 * @param numList A list of numbers.
 * @return A tuple with two elements - the sum of all even numbers and the count of odd numbers.
 */
fun combineFunctions(numList: List<Int>): Pair<Int, Int> {

    var evenSum = 0
    var oddCount = 0

    // Iterate over each number in the list
    for (num in numList) {
        // Add your code here:
        // 1. Check if the number is even using a function.
        // 2. If it is even, add it to the evenSum using another function.
        // 3. If it is odd, increment the oddCount using another function.
    }

    return Pair(evenSum, oddCount)
}

// Example usage