Each test contains multiple test cases. The first line contains the number of test cases (). The description of the test cases follows.
The first line of each test case contains two integers () — the number of crystals in the initial and target configurations, respectively.
The second line of each test case contains integers () — the energy levels of the initial crystals.
The third line of each test case contains integers () — the desired energy levels of the target crystals.
It is guaranteed that the sum of over all test cases does not exceed .