#include<bits/stdc++.h>
using namespace std;
int n,b[200002];
signed main(){
	for(cin>>n;cin>>n;){
		long long s=0;int y,z;multiset<int>o;for(int i=0;i<n+2;i++)cin>>b[i],s+=b[i],o.insert(b[i]);y=*prev(o.end()),z=*prev(prev(o.end())),(s-=y)-=z,o.erase(o.find(y)),o.erase(o.find(z));
		if(s==y||s==z){
			for(auto v:o)cout<<v<<' ';cout<<endl;continue;
		}
		s+=z,o.insert(z);
		if(s-y<2e9&&o.find(s-y)!=o.end()){int f=1;
			for(auto v:o)if(!f||v-s+y)cout<<v<<' ';else if(v==s-y)f=0;cout<<endl;continue;
		}else{s-=z,o.erase(o.find(z)),s+=y,o.insert(y);
			if(s-z<2e9&&o.find(s-z)!=o.end()){int f=0;
				for(auto v:o)if(!f||v-s+z)cout<<v<<' ';else if(v==s-z)f=0;cout<<endl;continue;
			}
		else puts("-1");}
	}
}