What if you XOR all x coordinates and all y coordinates ? you will get a pair(X,Y) which will be the answer.
Link to the solution : CodeChef: Practical coding for everyone
OR
from functools import reduce
from operator import xor
for _ in range(int(input())) :
n = int(input())
l1 = []
l2 = []
for i in range(4*n - 1) :
t1, t2 = map(int, input().split())
l1.append(t1)
l2.append(t2)
x = reduce(xor, l1)
y = reduce(xor, l2)
print(x, y)