<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_buffer(coords, length, buffer):
 """ check to see how much of the buffer is being used """

    s = min(coords[0], buffer)
    e = min(length - coords[1], buffer)
    return [s, e]