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

Ex Input:
['c', 2475, 'i', 2197, 'q', 2625, 'd', 9865, 4981, 407, 'C', 'U', '2141', '1319', 'f', 'c', 'x', 'H', '799', 'd', '9863', 'G', '3589', 'C', '4441', 'N', '2645', '8129', '9275', '2457', '7885', 'K', '4559', '2447', 'v', 'L', 'u', '7573', 'y', 'y', 'j', 5261, 'C', 7391, 'a', 3145, 1309, 'A', 's', 9681, 6579, 'H', 621, 'R', 'G'], ['L', 5243, 8851, 't', 10015, 'Z', 'f', 'v', 6007, 7767, 5085, 5665, 5755, 3261, 5521, 'v', 'N', 1465, 8667, 'W', '2141', '1319', 'f', 'c', 'x', 'H', '799', 'd', '9863', 'G', '3589', 'C', '4441', 'N', '2645', '8129', '9275', '2457', '7885', 'K', '4559', '2447', 'v', 'L', 'u', '7573', 'y', 'y', 'I', 'i', 5747, 2727, 'R', 's', 2623, 'u', 'Q', 9057, 'd', 'G', 'M', 3307]

Ex Output:
2141, 1319, f, c, x, H, 799, d, 9863, G, 3589, C, 4441, N, 2645, 8129, 9275, 2457, 7885, K, 4559, 2447, v, L, u, 7573, y, y


Ex Input:
[8039, 4457, 'z', 3519, 'q', 'T', 'k', 'b', 'H', 'W', 'H', '5561', '1389', '6389', '6923', '339', 'Q', '5837', 'D', 'z', 'F', '4743', '7197', '1407', '9711', '4355', '4027', '2219', 'w', 'S', 'Z', 'f', '4091', '2571', 'd', 1527, 'o', 1393, 't', 7653], ['g', 2437, 'm', 'b', 2347, 'Q', 6719, 2049, 6643, 'B', 6919, 1873, 'K', 9319, 6729, 'Z', 'E', 8011, 7953, 'M', 1121, 'k', '5561', '1389', '6389', '6923', '339', 'Q', '5837', 'D', 'z', 'F', '4743', '7197', '1407', '9711', '4355', '4027', '2219', 'w', 'S', 'Z', 'f', '4091', '2571', 'o', 1481, 867, 'B', 29]

Ex Output:
5561, 1389, 6389, 6923, 339, Q, 5837, D, z, F, 4743, 7197, 1407, 9711, 4355, 4027, 2219, w, S, Z, f, 4091, 2571


Ex Input:
['d', 5935, 'O', 77, 9959, 'e', 6001, 'V', 'f', 7829, 'P', 6051, 5743, 'M', 4501, 'e', '1843', '7327', 'p', 'j', 'n', 'd', '3029', 'C', 'l', '3797', '4693', 'Y', 'D', 'd', 'J', 'C', '7431', 'Z', 'v', 'J', 'c', 6231, 'z', 'b', 4041, 'P', 167, 'W', 'J', 379, 5653, 'I', 7837, 7429], ['L', 9547, 'I', 'j', 3287, 'W', 3179, 279, 5015, 'e', '1843', '7327', 'p', 'j', 'n', 'd', '3029', 'C', 'l', '3797', '4693', 'Y', 'D', 'd', 'J', 'C', '7431', 'c', 1853, 'q', 'Z', 5439, 'v', 845, 'O', 4271, 6299, 'e', 4659, 4549, 5347, 'd', 'a', 'k']

Ex Output:

e, 1843, 7327, p, j, n, d, 3029, C, l, 3797, 4693, Y, D, d, J, C, 7431