Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['V', 6763, 'C', 'r', 3253, '9811', '9809', 'M', '5295', '1269', '637', '901', 'N', 'a', '4065', '325', '9813', '9561', '6959', '1475', 'B', '7317', '8345', '3453', 'T', 's', '8401', 'p', 'A', 7307, 4155, 'Y', 6099, 6747, 'F', 'G', 827, 'n', 6839, 'x', 'G', 551, 2465, 'f', 9115, 4931, 211, 2609], ['d', 'y', 1271, 2999, 723, 8807, 9687, '9811', '9809', 'M', '5295', '1269', '637', '901', 'N', 'a', '4065', '325', '9813', '9561', '6959', '1475', 'B', '7317', '8345', '3453', 'T', 's', '8401', 'c', 'X', 6663, 5199, 'N', 6561, 8533, 'y', 's', 1519, 'F', 8731, 315, 'y', 9391, 'Q', 'z', 'R', 3969, 6067, 9471, 'n']
Output:
9811, 9809, M, 5295, 1269, 637, 901, N, a, 4065, 325, 9813, 9561, 6959, 1475, B, 7317, 8345, 3453, T, s, 8401