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

Example Input: [273, 'i', 4051, 9063, 'D', 'E', 5087, 'M', '9959', '6273', 'p', 'L', 'B', 'H', '7889', '9933', 'p', '519', '339', 'h', 'u', 5559, 1733, 9555], ['i', 5977, 'r', 'b', 589, '9959', '6273', 'p', 'L', 'B', 'H', '7889', '9933', 'p', '519', '339', 'n', 'y', 'q']
Example Output: 9959, 6273, p, L, B, H, 7889, 9933, p, 519, 339

Example Input: ['Y', 'T', 'S', 'w', 't', 2753, 2583, 'B', 1731, 'k', 5301, 'R', 'g', 5503, 1467, 'N', 'l', 'A', 'V', 2559, 'B', 5477, 9431, '6259', '7331', '9781', '945', 'S', '9147', '4263', '1371', 'c', '2595', 'W', 'N', 'T', 'l', 'X', 'T', 'e', '8731', 'A', 'V', '6643', 'k', 'S', 'r', 857, 'P', 2433, 'F'], [1509, 3085, 'H', 2635, 5929, 'h', 8211, 'D', 6973, '6259', '7331', '9781', '945', 'S', '9147', '4263', '1371', 'c', '2595', 'W', 'N', 'T', 'l', 'X', 'T', 'e', '8731', 'A', 'V', '6643', 'k', 'S', 'R', 'c', 'R', 'e', 3481, 'Y', 7899, 'l', 4879]
Example Output: 6259, 7331, 9781, 945, S, 9147, 4263, 1371, c, 2595, W, N, T, l, X, T, e, 8731, A, V, 6643, k, S

Example Input: [7321, 131, 'a', 'L', 'v', 7871, 'I', 'Y', 'Q', 'N', '8977', '6205', '2393', '899', '2271', '2869', 'T', 'B', 'M', '5621', 'y', 'O', 'y', 7453, 'Q', 'm', 7289, 'I', 'c', 2203], [6959, 'F', 'C', 3715, 9407, 9585, 'K', 'Z', 6135, 'N', 'F', 1031, 961, 'O', 'B', 'Y', 'Q', 'N', '8977', '6205', '2393', '899', '2271', '2869', 'T', 'B', 'M', '5621', 'y', 'O', 'G', 979, 3697, 'c', 't']
Example Output:
Y, Q, N, 8977, 6205, 2393, 899, 2271, 2869, T, B, M, 5621, y, O