Help me in solving LB06 problem

My issue

cant understand

My code

# Update the code below to solve the problem

t = int(input())
for i in range(t):
    N, X = map(int,input().split())
    if(X>N-X):
        

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