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: [2433, 'X', 8485, 1927, 2127, 8173, 7755, 4795, 4389, 1533, 'F', 'J', 'm', '815', 'i', '8555', '2391', 'M', 'c', 'c', 'h', '2677', '4129', 'y', '3999', 'n', 'Z', 'W', '9019', '5685', 'g', 'e', 'D', '3315', 'z', 'S', 'P', 75, 7819, 'j', 'm', 6861, 'R', 3931, 167, 9437, 'q', 5607, 'S', 5939, 'D', 'p', 'w', 689, 4265], [1169, 'I', 'E', 'Q', 9433, 99, 'S', 2367, 7367, 8127, 'I', 3203, 'f', 'n', 4635, 'J', 'm', '815', 'i', '8555', '2391', 'M', 'c', 'c', 'h', '2677', '4129', 'y', '3999', 'n', 'Z', 'W', '9019', '5685', 'g', 'e', 'D', '3315', 'E', 'J']
Example Output: J, m, 815, i, 8555, 2391, M, c, c, h, 2677, 4129, y, 3999, n, Z, W, 9019, 5685, g, e, D, 3315

Example Input: ['w', 'K', 9651, 'j', 't', '9649', '4041', 'B', '6577', 'S', 'r', 'R', 2285, 'U'], [6569, 't', 'X', 'D', '9649', '4041', 'B', '6577', 'S', 'r', 'V', 4775, 'o']
Example Output:
9649, 4041, B, 6577, S, r