/**
 * Count the number of combinations between values in two lists.
 *
 * @param x a list of integers
 * @param y a list of integers
 * @return The number of combinations between values in x and y.
 */
fun countCombinations(x: List<Int>, y: List<Int>): Int {

    var numCombinations = 0

    // Iterate over each element in list x
    for (i in x.indices) {

        // Iterate over each element in list y
        for (j in y.indices) {

            // Iterate over the range of values from 1 to the smallest between x[i] and y[j]
            for (k in 1..minOf(x[i], y[j])) {

                // If the product of k and the sum of x[i] and y[j] is greater than or equal to 20,
                // increment the numCombinations variable by 1
                if (k * (x[i] + y[j]) >= 20) {
                    numCombinations++
                }
            }
        }
    }

    return numCombinations
}
/**
 * Count the number of combinations between values in two lists.
 *
 * @param x a list of integers
 * @param y a list of integers
 * @return The number of combinations between values in x and y.
 */
fun countCombinations(x: List<Int>, y: List<Int>): Int {
/**
 * Count the number of combinations between values in two lists.
 *
 * @param x a list of integers
 * @param y a list of integers
 * @return The number of combinations between values in x and y.
 */
fun countCombinations(x: List<Int>, y: List<Int>): Int {

    var numCombinations = 0

    // Iterate over each element in list x
    for (i in x.indices) {

        // Iterate over each element in list y
        for (j in y.indices) {

            // Iterate over the range of values from 1 to the smallest between x[i] and y[j]
            for (k in 1..minOf(x[i], y[j])) {

                // If the product of k and the sum of x[i] and y[j] is greater than or equal to 20,
                // increment the numCombinations variable by 1
                if (k * (x[i] + y[j]) >= 20) {
                    numCombinations++
                }
            }
        }
    }

    return numCombinations
}