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

Example Input: ['T', 5987, '3759', 'O', 'x', '4311', 'e', '6841', 'R', 'd', 'y', '2745', 'n', 5107, 'w', 'u'], [6625, 'm', 8849, 3385, 6853, '3759', 'O', 'x', '4311', 'e', '6841', 'R', 'd', 'y', '2745', 'a', 'G', 'G', 'e', 3501]
Example Output: 3759, O, x, 4311, e, 6841, R, d, y, 2745

Example Input: [6917, 7141, '3657', '9205', 'b', 'm', 'Q', 'g', 'q', 'l'], [1429, 7173, 3447, '3657', '9205', 'b', 'm', 'Q', 'U', 'f']
Example Output: 3657, 9205, b, m, Q

Example Input: [8503, 'j', 1871, '5975', '6533', 'T', 's', 'n', '5223', '4053', '6819', '77', '4119', 'B', '201', 'k', 'd', 'f', '2557', 'C', 'p', 'P', 'o', 633, 3187, 1057, 'Q', 't', 'v', 'R', 1443, 9447, 6823, 1101, 5679], [9745, 6285, 9071, 1909, 9435, 'P', 'z', 'E', 2461, 1577, 'I', 5415, 'O', 2149, 'S', 'd', 'h', 4811, '5975', '6533', 'T', 's', 'n', '5223', '4053', '6819', '77', '4119', 'B', '201', 'k', 'd', 'f', '2557', 'C', 'p', 'P', 'Q', 'a', 2197, 3217, 3513, 'z', 'S', 8959, 'o', 'O']
Example Output:
5975, 6533, T, s, n, 5223, 4053, 6819, 77, 4119, B, 201, k, d, f, 2557, C, p, P