
    Create a function that calculates the points deducted in each section of a writing assignment by comparing a student's achieved scores against the maximum possible scores for grammar, content, and structure. The function should accept two tuples as input - one containing the maximum possible scores for each section and another containing the student's actual scores - and return the difference between them at each corresponding position. The resulting differences will represent the points lost in each section of the assignment.
    

    
def substract_elements(test_tup1, test_tup2):
    """
    Create a function that calculates the points deducted in each section of a writing assignment by comparing a student's achieved scores against the maximum possible scores for grammar, content, and structure. The function should accept two tuples as input - one containing the maximum possible scores for each section and another containing the student's actual scores - and return the difference between them at each corresponding position. The resulting differences will represent the points lost in each section of the assignment.
    

    """
def substract_elements(test_tup1, test_tup2):
    """
    Create a function that calculates the points deducted in each section of a writing assignment by comparing a student's achieved scores against the maximum possible scores for grammar, content, and structure. The function should accept two tuples as input - one containing the maximum possible scores for each section and another containing the student's actual scores - and return the difference between them at each corresponding position. The resulting differences will represent the points lost in each section of the assignment.
    

    """
    res = tuple(map(lambda i, j: i - j, test_tup1, test_tup2))
    return res