/**
 * This function calculates the lengths of each cut made by a carpenter on a board.
 *
 * @param cutList a list of integers representing the lengths of the cuts to be made
 * @param boardLength an integer representing the total length of the board
 * @return a list of integers representing the lengths of each cut made by the carpenter
 */
fun calculateCutLengths(cutList: List<Int>, boardLength: Int): List<Int> {

    val cutLengths = mutableListOf<Int>()
    
    for (cut in cutList) {
        cutLengths.add(boardLength - cut)
    }
    
    return cutLengths
}

// Example usage
/**
 * This function calculates the lengths of each cut made by a carpenter on a board.
 *
 * @param cutList a list of integers representing the lengths of the cuts to be made
 * @param boardLength an integer representing the total length of the board
 * @return a list of integers representing the lengths of each cut made by the carpenter
 */
fun calculateCutLengths(cutList: List<Int>, boardLength: Int): List<Int> {
/**
 * This function calculates the lengths of each cut made by a carpenter on a board.
 *
 * @param cutList a list of integers representing the lengths of the cuts to be made
 * @param boardLength an integer representing the total length of the board
 * @return a list of integers representing the lengths of each cut made by the carpenter
 */
fun calculateCutLengths(cutList: List<Int>, boardLength: Int): List<Int> {

    val cutLengths = mutableListOf<Int>()
    
    for (cut in cutList) {
        cutLengths.add(boardLength - cut)
    }
    
    return cutLengths
}

// Example usage