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

Ex Input:
['Y', 'z', 5335, 'X', 3843, 'D', 4457, 2327, 'V', 7231, 'y', 4551, 'W', 9241, '7147', '6713', '9717', '8795', '3161', 'V', '1129', '2943', '9809', 'a', '3273', 'y', 'R', 'M', 'g', 'E', 'D', 'd', 'x', 5331, 7187, 'J', 3839, 't'], [1485, 'f', 8207, 5859, 'D', 'k', 't', 'r', 'z', 613, 9091, 4893, 5755, '7147', '6713', '9717', '8795', '3161', 'V', '1129', '2943', '9809', 'a', '3273', 'y', 'R', 'M', 'Q', 5331, 'c', 3531, 6477, 'a']

Ex Output:
7147, 6713, 9717, 8795, 3161, V, 1129, 2943, 9809, a, 3273, y, R, M


Ex Input:
['K', 9673, 1909, 4297, 4479, 6817, 4899, 'C', 6959, 'V', '9807', '5503', '4787', '8401', '1975', 'c', '3357', 'O', '2117', 'V', 'W', '223', 'n', '7837', 'J', '7137', '4965', 'O', '9937', 'a', 'M', 'n', 6241, 'm'], ['x', 2703, 'G', 'g', 6139, 369, 'M', 2263, 1539, 8497, '9807', '5503', '4787', '8401', '1975', 'c', '3357', 'O', '2117', 'V', 'W', '223', 'n', '7837', 'J', '7137', '4965', 'O', '9937', 'X', 171, 2305, 2887, 'x', 'M', 557, 9003, 'H', 'V', 'B', 7409]

Ex Output:
9807, 5503, 4787, 8401, 1975, c, 3357, O, 2117, V, W, 223, n, 7837, J, 7137, 4965, O, 9937


Ex Input:
[8787, 7029, 'r', 523, 1981, 915, 4535, '7797', 'f', '9547', 'N', 'u', '1925', '7403', 'x', '5091', 'Z', 'm', '2411', 'X', '5433', 'W', '2017', '4071', '9805', 'S', 'T', 'c', '2893', '4221', 'd', 'u', 'l', 'B', '9053', 'e', '2595', 'k', 'b', 'Z', 6153, 7567, 'e', 'T', 2699, 9205, 'r', 8511, 3853, 'z'], ['y', 'n', 'C', 'F', 'K', 2479, 'I', 8895, 3383, 5415, 'F', 9803, '7797', 'f', '9547', 'N', 'u', '1925', '7403', 'x', '5091', 'Z', 'm', '2411', 'X', '5433', 'W', '2017', '4071', '9805', 'S', 'T', 'c', '2893', '4221', 'd', 'u', 'l', 'B', '9053', 'e', '2595', 'I', 'Y', 559, 'p', 'M', 2587, 6617, 'P', 3185, 'Z', 9441, 'J', 5341, 3273, 'p', 3079, 'H', 8629, 3289]

Ex Output:

7797, f, 9547, N, u, 1925, 7403, x, 5091, Z, m, 2411, X, 5433, W, 2017, 4071, 9805, S, T, c, 2893, 4221, d, u, l, B, 9053, e, 2595