1.Sort one of the array. This can be done in O(nlogn).
2.Each value of unsorted array treat as key for sorted array and run binary search on sorted array for each element of unsorted array. If there is element found in sorted array. Simply store any flag like INT_MAX value to skip later at the time of printing values containing (A-B).And this can also done in O(nlogn).
3. Print all values of sorted array except flag value.
If this was programming question. I would go with this approach to write code. :P