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

Input: Consider Input: ['t', 'W', 'i', 't', 4163, 'd', 'k', 'Y', 'V', '5149', '6959', '6843', '7821', '6533', 'g', '6879', 'T', 6267, 5627, 'u', 'g', 'F', 3861], ['f', 'g', 'N', 'I', 'C', 4633, 'Y', 'V', '5149', '6959', '6843', '7821', '6533', 'g', '6879', 'A', 'K', 1819, 3343, 8603, 'h', 1751, 'h']

Output: Y, V, 5149, 6959, 6843, 7821, 6533, g, 6879

Input: Consider 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]

Output: 6259, 7331, 9781, 945, S, 9147, 4263, 1371, c, 2595, W, N, T, l, X, T, e, 8731, A, V, 6643, k, S

Input: Consider Input: [1033, 3483, 7931, 6255, 2409, 'C', 1515, 6815, 6757, 7733, 647, 3591, '1383', '1951', 'r', '855', '5459', '9007', 'S', '9875', '4713', 'Q', '6117', 'w', 'e', 'e', 'R'], [4995, 1711, 6933, 'u', 8375, 'f', 'z', 3823, 'S', 1105, '1383', '1951', 'r', '855', '5459', '9007', 'S', '9875', '4713', 'Q', '6117', 'w', 'R', 6311, 'y', 'V', 'u', 9955, 9879]
Output: 1383, 1951, r, 855, 5459, 9007, S, 9875, 4713, Q, 6117, w