/**
 * This function takes a list of furniture pieces and a list of lengths. It returns a cut list
 * which contains all the possible combinations of furniture pieces and lengths.
 *
 * @param furniturePieces A list containing the names of furniture pieces.
 * @param lengths A list containing the lengths of wood available.
 * @return A list of pairs representing the combinations of furniture pieces and lengths.
 */
fun createCutList(furniturePieces: List<String>, lengths: List<Int>): List<Pair<String, Int>> {

    val cutList = mutableListOf<Pair<String, Int>>()

    // Iterate through each furniture piece
    for (piece in furniturePieces) {
        // Iterate through each length
        for (length in lengths) {
            // Append the combination to the cut list
            cutList.add(Pair(piece, length))
        }
    }

    return cutList
}

val furniturePieces = listOf("table", "chair", "shelf")
val lengths = listOf(6, 8, 10)
/**
 * This function takes a list of furniture pieces and a list of lengths. It returns a cut list
 * which contains all the possible combinations of furniture pieces and lengths.
 *
 * @param furniturePieces A list containing the names of furniture pieces.
 * @param lengths A list containing the lengths of wood available.
 * @return A list of pairs representing the combinations of furniture pieces and lengths.
 */
fun createCutList(furniturePieces: List<String>, lengths: List<Int>): List<Pair<String, Int>> {
/**
 * This function takes a list of furniture pieces and a list of lengths. It returns a cut list
 * which contains all the possible combinations of furniture pieces and lengths.
 *
 * @param furniturePieces A list containing the names of furniture pieces.
 * @param lengths A list containing the lengths of wood available.
 * @return A list of pairs representing the combinations of furniture pieces and lengths.
 */
fun createCutList(furniturePieces: List<String>, lengths: List<Int>): List<Pair<String, Int>> {

    val cutList = mutableListOf<Pair<String, Int>>()

    // Iterate through each furniture piece
    for (piece in furniturePieces) {
        // Iterate through each length
        for (length in lengths) {
            // Append the combination to the cut list
            cutList.add(Pair(piece, length))
        }
    }

    return cutList
}

val furniturePieces = listOf("table", "chair", "shelf")
val lengths = listOf(6, 8, 10)