#include <iostream>
#include <vector>
#include <algorithm>
#define ll long long
#define over "\n"

using namespace std;

void fun()
{
    ll n;
    cin >> n;
    vector<ll> b(n + 2);
    ll a;
    ll answer = 0;
    for (ll i = 0; i < n + 2; i++)
    {
        cin >> a;
        b[i] = a;
    }
    sort(b.begin(), b.end());
    ll sum = 0;
    for (ll i = 0; i < n; i++)
    {
        sum += b[i];
    }
    if (sum == b[n + 1] || sum == b[n])
    {
        for (ll i = 0; i < n - 1; i++)
        {
            cout << b[i] << " ";
        }
        cout << b[n - 1] << over;
        answer = 2;
    }
    else
    {
        ll checker = sum + b[n] - b[n + 1];
        for (ll x = 0; x < n; x++)
        {
            if (b[x] == checker)
            {
                b[x] = b[n];
                for (ll i = 0; i < n - 1; i++)
                {
                    cout << b[i] << " ";
                }
                cout << b[n - 1] << over;
                answer = 2;
                break;
            }
        }
    }
    if (answer == 0)
    {
        cout << -1 << over;
    }
}

int main()
{
    ll t;
    cin >> t;
    while (t--)
    {
        fun();
    }
}
