In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Ex Input:
[2799, 'R', 's', '9885', 's', 'c', '7143', 'H', '445', 'F', 9229, 'B', 5169, 'T', 's'], [109, 'u', 'f', 2303, 1495, 5041, '9885', 's', 'c', '7143', 'H', '445', 'v', 7261]

Ex Output:
9885, s, c, 7143, H, 445


Ex Input:
[4693, 'L', 7881, 9637, 'y', 's', 1851, '7315', 'i', 'I', '9393', '79', '279', '4549', '7217', '897', '2329', '5301', '3337', '9273', 'Z', 'a', 5545, 6795], ['t', 'W', 4149, 'h', 'M', 'A', 4569, 2677, '7315', 'i', 'I', '9393', '79', '279', '4549', '7217', '897', '2329', '5301', '3337', '9273', 'r', 2423, 6015, 3755, 6699, 'p', 39, 'h', 'b']

Ex Output:
7315, i, I, 9393, 79, 279, 4549, 7217, 897, 2329, 5301, 3337, 9273


Ex Input:
[8105, 1303, '8471', 'F', 'p', 'G'], [5497, 7415, '8471', 'F', 'Y', 'M']

Ex Output:

8471, F