Help me in solving PSPP79A problem

My issue

I cant able to understand this problem.
can anyone solve this?

My code

def compute_value(a, b):
    # update your code below this line
    
    
    
    

t = 3
for _ in range(t):
    A, B = map(int, input().split())
    compute_value(A, B)

Learning course: Python with Data structures
Problem Link: Return values Practice Problem in Python with Data structures - CodeChef