def seq_adjacent_terms_sum(sequence: list, sum_level: int):
    """
    A function to extract the sums of adjacent terms
    sequence: A list of integers that contains the sequence
    sum_level: The level indicates the number of times the operation will be applied on the sequence
    return: A list of list of integers that contains the sequence after extracting the sums
    """
    seq = sequence
    list_ret = [[0]] * sum_level

    for idx in range(0, sum_level):
        sum_seq = [0] * (len(seq) - 1)
        for n in range(1, len(seq)):
            sum_seq[n - 1] = seq[n] + seq[n - 1]

        list_ret[idx] = sum_seq
        seq = sum_seq

    return list_ret