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

Input: Consider Input: [2413, 'l', 'o', 9687, 3939, 6935, '7821', '9179', '8181', 'K', '4993', '4813', 'x', 'A', 'O', '2477', 'b', 'H', 'I', 'z', 'I'], [4625, 6943, 'e', 'B', 'p', 'r', 'y', '7821', '9179', '8181', 'K', '4993', '4813', 'x', 'A', 'O', '2477', 'b', 'H', 'I', 'G', 'L', 8247, 'N', 8965, 8763, 'N', 'p', 7181, 'A', 'J', 'W']

Output: 7821, 9179, 8181, K, 4993, 4813, x, A, O, 2477, b, H, I


Input: Consider Input: ['l', 581, 4659, 2559, 'f', 'S', '1219', '6225', '515', '5369', 'w', 'V', 7431, 6195, 1731, 'J', 9541], [8813, 7733, 'n', 'a', 'h', 981, 'S', '1219', '6225', '515', '5369', 'w', 'q', 'A', 'U', 'J']

Output: S, 1219, 6225, 515, 5369, w


Input: Consider Input: ['Z', 1347, 4783, 9667, 'B', '1235', '8023', '1321', 'n', 147], [9801, 'L', 'B', '1235', '8023', '1321', 'P', 'y', 1953, 1625]


Output: B, 1235, 8023, 1321