Help me in solving EQUALIZEAB problem

My issue

t=int(input())
for i in range(t):
a,b,x=map(int,input().split())
if a==b:
print(“yes”)
else:
if (a+x)==(b-x) or (a-x)==(b+x):
print(“yes”)
else:
print(“no”)

My code

# cook your dish here
t=int(input())
for i in range(t):
    a,b,x=map(int,input().split())
    if a==b:
        print("yes")
    else:
        if (a+x)==(b-x) or (a-x)==(b+x):
            print("yes")
        else:
            print("no")
        
    

Problem Link: Equalize AB Practice Coding Problem

@honey48
the logic is if the absolute difference between a and b is divisible by 2*x then the answer would be yes or else it would be no.