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

Example Input: ['r', 'g', '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'G', 'N', 2585], ['X', 5347, 'M', 'Z', 4615, '997', 'n', '631', '527', 'E', 'A', 'n', 'n', 'G', '1197', 'R', 'L', 'P', 'o']
Example Output: 997, n, 631, 527, E, A, n, n, G, 1197, R, L

Example Input: [2087, 5665, 'W', 'H', 6711, '8181', 'q', '1949', 'j', '7351', 'g', 5827, 4893, 9173], [5187, 4249, '8181', 'q', '1949', 'j', '7351', 'w', 'Z', 'C', 3255]
Example Output: 8181, q, 1949, j, 7351

Example Input: [9945, 'F', 6843, 'b', 2021, 5141, 'I', 4629, '6185', 'p', '155', '5111', '4489', 'Y', 'T', 'D', 'h', '4807', '3359', '3743', 'R', 'E', 'h', 'V', 'X', '7757', '6535', 's', 'D', 6543, 'E', 'g', 8105, 'X', 835], [6171, 'T', 6669, 9845, 'T', 'H', 9635, 'n', 9589, 'P', 'V', 'p', '6185', 'p', '155', '5111', '4489', 'Y', 'T', 'D', 'h', '4807', '3359', '3743', 'R', 'E', 'h', 'V', 'X', '7757', '6535', 'q', 'x', 'i', 'B', 7727, 3579]
Example Output:
6185, p, 155, 5111, 4489, Y, T, D, h, 4807, 3359, 3743, R, E, h, V, X, 7757, 6535