Help me in solving VCOUPLE problem

My issue

explain me the approach

My code

for i in range(int(input())):
    n=int(input())
    a=list(map(int,input().split()))
    b=list(map(int,input().split()))
    # a.sort
    # b.sort
    print(a.sort)
    print(b.sort)

Problem Link: B - Valentine Couples Practice Coding Problem

You have to sort one array in ascending order and other one in decending order and print the maximum value possible of sum of both array for each index;