
    Write a function to calculate the total popularity score of weekend social events (at even positions) that have even engagement scores, helping prioritize event recommendations that align with friend group availability patterns. The function should analyze a list of event engagement scores where even-positioned scores represent weekend events, and return the sum of those even-positioned scores that are also even numbers.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function to calculate the total popularity score of weekend social events (at even positions) that have even engagement scores, helping prioritize event recommendations that align with friend group availability patterns. The function should analyze a list of event engagement scores where even-positioned scores represent weekend events, and return the sum of those even-positioned scores that are also even numbers.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function to calculate the total popularity score of weekend social events (at even positions) that have even engagement scores, helping prioritize event recommendations that align with friend group availability patterns. The function should analyze a list of event engagement scores where even-positioned scores represent weekend events, and return the sum of those even-positioned scores that are also even numbers.
    

    """
    i = 0
    sum = 0
    for i in range(0, len(arr), 2):
        if arr[i] % 2 == 0:
            sum += arr[i]
    return sum