/**
 * Calculate the total number of work hours for a graphic designer by adding the past hours and additional hours.
 *
 * @param pastHours Total number of work hours completed in the past.
 * @param additionalHours Number of additional work hours that need to be added.
 * @return Total work hours after adding the past and additional hours.
 */
fun calculateWorkHours(pastHours: Int, additionalHours: Int): Int {

    var totalHours = pastHours + additionalHours

    // Check if the totalHours is negative
    if (totalHours < 0) {
        totalHours = 0
    }

    // Check if the totalHours is greater than 80
    if (totalHours > 80) {
        totalHours = 80
    }

    return totalHours
}
/**
 * Calculate the total number of work hours for a graphic designer by adding the past hours and additional hours.
 *
 * @param pastHours Total number of work hours completed in the past.
 * @param additionalHours Number of additional work hours that need to be added.
 * @return Total work hours after adding the past and additional hours.
 */
fun calculateWorkHours(pastHours: Int, additionalHours: Int): Int {
/**
 * Calculate the total number of work hours for a graphic designer by adding the past hours and additional hours.
 *
 * @param pastHours Total number of work hours completed in the past.
 * @param additionalHours Number of additional work hours that need to be added.
 * @return Total work hours after adding the past and additional hours.
 */
fun calculateWorkHours(pastHours: Int, additionalHours: Int): Int {

    var totalHours = pastHours + additionalHours

    // Check if the totalHours is negative
    if (totalHours < 0) {
        totalHours = 0
    }

    // Check if the totalHours is greater than 80
    if (totalHours > 80) {
        totalHours = 80
    }

    return totalHours
}