Help me in solving EQUALIZEAB problem

My issue

find error

My code

# cook your dish here
t=int(input())
for i in range(t):
  a,b,x=map(int,input().split())
  s=a+x
  g=b-x
  h=a-x
  j=b+x
  if s==g and h==j:
    print("YES")
  else:
    print("NO")

Problem Link: Equalize AB Practice Coding Problem