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

Ex Input:
[8507, 'H', 'o', 'N', 'r', 'I', 3733, 'r', 6877, 5193, 1389, 7105, '8513', 'A', '5801', 'M', '1339', '6353', 'C', '3591', 'W', '7703', 'D', 'i', '1975', '9169', '7427', '8345', 'l', 'C', 'C', 'd', '7579', '1463', '8451', 'H', 'K', 'u', '8561', 'x', 3575, 'A', 7405, 'o', 'J', 6163, 'y', 'O', 'g', 7633, 'A', 6531, 4627, 'P', 'O', 'j', 'S', 'b', 'c', 'V', 7923, 'K', 'i', 5625, 893, 'V'], ['W', 'O', 6909, 'a', 1667, 'n', 'D', 'i', 7719, 4109, 4167, 4099, 5473, 'b', 'g', 'R', '8513', 'A', '5801', 'M', '1339', '6353', 'C', '3591', 'W', '7703', 'D', 'i', '1975', '9169', '7427', '8345', 'l', 'C', 'C', 'd', '7579', '1463', '8451', 'H', 'K', 'u', '8561', 'h', 'Z', 383, 2829, 5461, 1851, 'F', 'l', 981, 6545, 'v', 7707, 'W', 675, 'V', 'C', 599, 'd', 1967, 'X', 'y', 'B', 'K']

Ex Output:
8513, A, 5801, M, 1339, 6353, C, 3591, W, 7703, D, i, 1975, 9169, 7427, 8345, l, C, C, d, 7579, 1463, 8451, H, K, u, 8561


Ex Input:
[7087, 4471, 'P', 'W', 'C', '6301', 'T', '6625', '9345', '4471', '4385', 'H', 'K', 'r', 'Z', 'O', 'y', 'm', 7683, 1493, 'F', 4293, 'z'], [1607, 8143, 'F', 5435, 8723, 'x', 'C', '6301', 'T', '6625', '9345', '4471', '4385', 'H', 'K', 'r', 'E', 1241]

Ex Output:
C, 6301, T, 6625, 9345, 4471, 4385, H, K, r


Ex Input:
[8779, 'o', 7341, 'q', 'x', 2727, 8843, 'r', 't', 'v', 1103, 2165, 'n', '3071', 'X', '561', 'w', '1315', '4571', '6913', 'K', 'O', 'o', 'c', 'f', '4827', '8017', '3947', '5187', '8671', '1721', '7655', '3061', '8185', '2111', '5645', 'R', 'R', 2427, 'L', 3739, 9749, 6021, 'T', 'X', 'S'], [5865, 'e', 'F', 7689, 'k', 'o', 639, 't', 669, 10009, 7285, 'J', 5657, 'U', 'E', 'q', 'D', 'S', 9571, 'x', '3071', 'X', '561', 'w', '1315', '4571', '6913', 'K', 'O', 'o', 'c', 'f', '4827', '8017', '3947', '5187', '8671', '1721', '7655', '3061', '8185', '2111', '5645', 'N', 'L', 'V', 8759, 'S', 'N', 5999, 'F', 5987, 5145, 'm', 5157, 2221, 9907, 47, 'e', 'o', 2331, 2529]

Ex Output:

3071, X, 561, w, 1315, 4571, 6913, K, O, o, c, f, 4827, 8017, 3947, 5187, 8671, 1721, 7655, 3061, 8185, 2111, 5645