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

Ex Input:
['L', 6265, 'o', 'B', 9743, 9139, 't', '4107', '821', '9019', '5149', '7817', 'i', '787', 'G', 'b', 'g', 'g', 'j', '197', 'n', 'W', 'Z', '7081', '4487', '1439', '1117', 'K', 'O', '2241', 'J', 8701, 'U', 'q', 'r', 8487, 'G', 'N', 'z', 3439, 'I', 'a', 639], ['X', 7305, 'k', 4911, 1119, 'S', 'F', 8665, 3167, 1117, 6267, 4025, 'S', 'h', '4107', '821', '9019', '5149', '7817', 'i', '787', 'G', 'b', 'g', 'g', 'j', '197', 'n', 'W', 'Z', '7081', '4487', '1439', '1117', 'K', 'O', '2241', 'H', 7485, 5635]

Ex Output:
4107, 821, 9019, 5149, 7817, i, 787, G, b, g, g, j, 197, n, W, Z, 7081, 4487, 1439, 1117, K, O, 2241


Ex Input:
['t', 'f', 3791, 2099, '3895', '5725', '7743', '9219', 'c', '6319', '3099', '3601', 'a', '2943', '2543', '51', 'r', 'w', '2379', '5423', '5807', 'l', 'b', 'f', 'i', 2371, 'W', 'c', 'c', 'l', 5505, 'L', 'w', 'a'], ['s', 5505, 'h', 4601, 4713, 6191, 't', 9213, 'D', 1777, 'E', '3895', '5725', '7743', '9219', 'c', '6319', '3099', '3601', 'a', '2943', '2543', '51', 'r', 'w', '2379', '5423', '5807', 'l', 'v', 5275, 'C', 'Y', 3371, 7105, 411, 'f', 8409]

Ex Output:
3895, 5725, 7743, 9219, c, 6319, 3099, 3601, a, 2943, 2543, 51, r, w, 2379, 5423, 5807, l


Ex Input:
[8071, 'g', 6749, 'N', 7571, 'G', 'C', '3475', '6203', 'q', 'U', '7683', 'z', '6439', '9407', '3331', 'e', 'W', '4055', '3057', '2235', '8087', 'n', 'Q', '8227', 'q', 5899, 8417, 3309, 'c', 8125, 6349, 9917, 8821, 'G', 1869], [8395, 'g', 8435, 'z', 'm', 3571, 's', 8493, 'n', 1237, 7687, 1959, 'G', 'C', '3475', '6203', 'q', 'U', '7683', 'z', '6439', '9407', '3331', 'e', 'W', '4055', '3057', '2235', '8087', 'n', 'Q', '8227', 'L', 'K', 'r', 'a', 'N', 2121, 6907, 8233, 8617]

Ex Output:

G, C, 3475, 6203, q, U, 7683, z, 6439, 9407, 3331, e, W, 4055, 3057, 2235, 8087, n, Q, 8227