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

Ex 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']

Ex Output:
2731, W, 5987, 4043, w, v, S, v, 1143, 1725, 9073, 4411, 9321, 1213, 3111, 2527, U


Ex Input:
['P', 6481, 'O', 6003, 1505, 'G', 3907, 'c', 5741, 3, '4963', '1225', '4331', '1287', 'v', '8479', 'y', '673', 'M', 'V', '8307', 'C', '7931', 'z', 'Z', 'P', 'i', 9259, 'T'], [3141, 4731, 4787, 6417, 8539, 3015, 3437, 6005, 'w', '4963', '1225', '4331', '1287', 'v', '8479', 'y', '673', 'M', 'V', '8307', 'C', '7931', 'z', 'k', 6421, 645, 6161, 'm']

Ex Output:
4963, 1225, 4331, 1287, v, 8479, y, 673, M, V, 8307, C, 7931, z


Ex Input:
[2627, 367, 'w', 'u', 'Z', 6545, 's', '3661', '5145', 'B', '7273', 'p', '5217', '1455', '3723', 'R', '6717', 'C', 'Q', '13', '5915', 'D', '4211', '6393', 'Y', 'D', '4837', '917', '4547', 'T', '7231', 'Z', 'R', 'o', 8351, 9775, 'D', 'Q', 6157, 4739, 'O', 3007, 2663, 1763, 'U', 5995], ['D', 4893, 9841, 'p', 8459, 'D', 6709, 4545, 'W', 2825, 7785, 7553, 2003, 'd', 777, 547, 'M', 2763, 'p', 'J', 'U', 'L', 'E', 6401, 'Z', 'G', '3661', '5145', 'B', '7273', 'p', '5217', '1455', '3723', 'R', '6717', 'C', 'Q', '13', '5915', 'D', '4211', '6393', 'Y', 'D', '4837', '917', '4547', 'T', '7231', 'Z', 'R', 'i', 'A', 'u', 'b', 2805, 4059, 'V', 9355, 'v', 727, 521, 't', 'o', 3565, 'j', 'J', 'M', 'X']

Ex Output:

3661, 5145, B, 7273, p, 5217, 1455, 3723, R, 6717, C, Q, 13, 5915, D, 4211, 6393, Y, D, 4837, 917, 4547, T, 7231, Z, R