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

Example Input: ['S', 'd', 'z', 2305, '2731', 'W', '5987', '4043', 'w', 'v', 'S', 'v', '1143', '1725', '9073', '4411', '9321', '1213', '3111', '2527', 'U', 'U', 'y', 'N', 'n', 6769], ['Q', 'T', 'n', 1267, 5099, 57, 4739, 295, 8099, 'n', '2731', 'W', '5987', '4043', 'w', 'v', 'S', 'v', '1143', '1725', '9073', '4411', '9321', '1213', '3111', '2527', 'U', 'K', 'n', 'N', 'b', 3941, 3443, 'A', 7927, 'g', 'h']
Example Output: 2731, W, 5987, 4043, w, v, S, v, 1143, 1725, 9073, 4411, 9321, 1213, 3111, 2527, U

Example Input: [2787, 'N', 'I', 'M', 'x', '3825', 'r', '1041', 'y', 'a', 'v', 6057], ['F', 6523, 'x', '3825', 'r', '1041', 's', 'C', 3001, 8425]
Example Output: x, 3825, r, 1041

Example Input: ['y', 'a', 'W', 'P', 901, 1551, 9937, 'x', 'F', '461', 'y', 'g', 'n', '2725', '6639', '8283', '2931', '8331', 'K', '9043', 'T', 'u', '1595', 'r', '7723', '1627', '6961', '3641', '6585', 'q', '5901', 'K', 'U', 'L', 'x', 'T', 'D', 4583, 4339, 's', 7703, 'h', 'o', 'a'], ['p', 'h', 'N', 'Y', 'h', 9039, 2937, 'r', 'm', 'c', 'y', 941, 2935, 6283, 3245, 3563, 315, 'o', '461', 'y', 'g', 'n', '2725', '6639', '8283', '2931', '8331', 'K', '9043', 'T', 'u', '1595', 'r', '7723', '1627', '6961', '3641', '6585', 'q', '5901', 'K', 'N', 'h', 'H', 7905, 3745, 'N', 'O', 8431, 'u', 8541, 4817, 5583, 'I', 'f', 5955, 'U', 1853, 'k', 'y', 'V', 6127]
Example Output:
461, y, g, n, 2725, 6639, 8283, 2931, 8331, K, 9043, T, u, 1595, r, 7723, 1627, 6961, 3641, 6585, q, 5901, K