/**
 * A carpenter has a list of cuts to make and a set of available boards.
 * Create a tuple for each cut and board combination, where each tuple
 * contains the length of the cut and the length of the board.
 * Return a list of all the created tuples.
 *
 * @param cuts A list of integers representing the lengths of the cuts to make.
 * @param boards A set of integers representing the lengths of the available boards.
 * @return A list of tuples, each containing the length of the cut and the length of the board.
 */
fun carpenterInventory(cuts: List<Int>, boards: Set<Int>): List<Pair<Int, Int>> {

    val inventory = mutableListOf<Pair<Int, Int>>()

    // Iterate through each cut and board combination
    for (cut in cuts) {
        for (board in boards) {
            // Create a tuple for the current cut and board combination
            inventory.add(Pair(cut, board))
        }
    }

    return inventory
}
/**
 * A carpenter has a list of cuts to make and a set of available boards.
 * Create a tuple for each cut and board combination, where each tuple
 * contains the length of the cut and the length of the board.
 * Return a list of all the created tuples.
 *
 * @param cuts A list of integers representing the lengths of the cuts to make.
 * @param boards A set of integers representing the lengths of the available boards.
 * @return A list of tuples, each containing the length of the cut and the length of the board.
 */
fun carpenterInventory(cuts: List<Int>, boards: Set<Int>): List<Pair<Int, Int>> {
/**
 * A carpenter has a list of cuts to make and a set of available boards.
 * Create a tuple for each cut and board combination, where each tuple
 * contains the length of the cut and the length of the board.
 * Return a list of all the created tuples.
 *
 * @param cuts A list of integers representing the lengths of the cuts to make.
 * @param boards A set of integers representing the lengths of the available boards.
 * @return A list of tuples, each containing the length of the cut and the length of the board.
 */
fun carpenterInventory(cuts: List<Int>, boards: Set<Int>): List<Pair<Int, Int>> {

    val inventory = mutableListOf<Pair<Int, Int>>()

    // Iterate through each cut and board combination
    for (cut in cuts) {
        for (board in boards) {
            // Create a tuple for the current cut and board combination
            inventory.add(Pair(cut, board))
        }
    }

    return inventory
}