
    Write a function that identifies the total number of common learning checkpoints between a student's correct answers and the total test questions, where each checkpoint represents a divisor that applies to both numbers, to help determine optimal study milestone intervals. For example, if a student got 12 questions correct out of 18 total questions, finding the common divisors (1, 2, 3, 6) would suggest four natural checkpoint intervals for breaking down the study material.
    

    
def sum(a, b):
    """
    Write a function that identifies the total number of common learning checkpoints between a student's correct answers and the total test questions, where each checkpoint represents a divisor that applies to both numbers, to help determine optimal study milestone intervals. For example, if a student got 12 questions correct out of 18 total questions, finding the common divisors (1, 2, 3, 6) would suggest four natural checkpoint intervals for breaking down the study material.
    

    """
def sum(a, b):
    """
    Write a function that identifies the total number of common learning checkpoints between a student's correct answers and the total test questions, where each checkpoint represents a divisor that applies to both numbers, to help determine optimal study milestone intervals. For example, if a student got 12 questions correct out of 18 total questions, finding the common divisors (1, 2, 3, 6) would suggest four natural checkpoint intervals for breaking down the study material.
    

    """
    sum = 0
    for i in range(1, min(a, b)):
        if a % i == 0 and b % i == 0:
            sum += i
    return sum