#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

const ll inf=1e17;


int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);

    #ifndef ONLINE_JUDGE
		freopen("input.txt","r",stdin);
		freopen("output.txt","w",stdout);
    #endif

	int t;
	cin>>t;

	while(t--){
		int n;
		cin>>n;

		vector<int> b(n+2);
		vector<int> ans;
		ll sum = 0;

		for(int i=0;i<n+2;i++){
			cin>>b[i];
			sum+=b[i];
		}

		multiset<int> have(b.begin(),b.end());
		

		for(auto x:b){
			have.erase(have.find(x));
			sum-=x;

			if(sum%2==0 && sum<=2e9 && have.find(sum/2)!=have.end()){
				have.erase(have.find(sum/2));
				for(auto y:have){
					ans.push_back(y);
				}
				break;
			}

			sum+=x;
			have.insert(x);
		}

		if((int)ans.size()!=n){
			cout<<"-1";
		}
		else{
			for(auto x:ans){
				cout<<x<<" ";
			}
		}
		cout<<endl;
	}
	
	
}	
