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

Example Input: ['X', 1863, 6105, 'n', 8419, 6469, 'u', 'p', '1641', '1413', '6389', '7069', '1333', 'q', '9609', 'D', '843', '2667', '223', '6689', 'B', 9885], ['l', 'L', 'S', 'p', 'j', '1641', '1413', '6389', '7069', '1333', 'q', '9609', 'D', '843', '2667', '223', '6689', 'F', 5539, 'C', 1383, 'n', 9991]
Example Output: 1641, 1413, 6389, 7069, 1333, q, 9609, D, 843, 2667, 223, 6689

Example Input: ['c', 'G', 8225, 6329, '6291', '5279', 'n', 'A', 'J', 'n', 5221, 'r', 't'], ['k', 'M', 'Z', 'B', 4003, '6291', '5279', 'n', 'A', 'J', 'g', 'm']
Example Output: 6291, 5279, n, A, J

Example Input: ['z', 'P', 'C', 4139, 7779, 'W', 'd', '1425', 'n', 'I', '9971', '9795', 'B', '2083', 'o', 'D', 'i'], ['a', 1825, 'S', 'd', '1425', 'n', 'I', '9971', '9795', 'B', '2083', 'c', 'H', 9407, 'k', 4517]
Example Output:
d, 1425, n, I, 9971, 9795, B, 2083