
    Given two users' activity metrics where one user has 'a' total interests and another has 'b' total interaction patterns, develop a compatibility score by finding the sum of all common factors between these numbers that could represent potential matching points. This compatibility scoring system will help determine how well users might connect based on their overlapping behavioral patterns and shared interest categories.
    

    
def sum(a, b):
    """
    Given two users' activity metrics where one user has 'a' total interests and another has 'b' total interaction patterns, develop a compatibility score by finding the sum of all common factors between these numbers that could represent potential matching points. This compatibility scoring system will help determine how well users might connect based on their overlapping behavioral patterns and shared interest categories.
    

    """
def sum(a, b):
    """
    Given two users' activity metrics where one user has 'a' total interests and another has 'b' total interaction patterns, develop a compatibility score by finding the sum of all common factors between these numbers that could represent potential matching points. This compatibility scoring system will help determine how well users might connect based on their overlapping behavioral patterns and shared interest categories.
    

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