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

Ex Input:
[5413, 'T', 'i', 'Q', 'Y', 'H', '2143', 'M', 'p', 'M', 'l'], ['Y', 'p', 'Y', 'H', '2143', 'M', 'A', 5017, 4553]

Ex Output:
Y, H, 2143, M


Ex Input:
[7299, 'v', 7279, 'o', 2589, 'K', '4943', '9427', '7945', '7645', '1709', '6515', '2249', 'l', 'n', 'f', '1935', 'e', 'f', '2977', '8835', 'p', '7753', 'U', '295', 'f', 1935, 'V', 9979, 3301, 'Z', 'J', 521, 871, 'Z', 'R', 7831, 'T', 'h', 3231, 'e', 2391], [7491, 'k', 4137, 'P', 'F', 8159, 'x', 6363, 2449, 7479, 6825, 7107, 'I', 2931, 7047, 9149, '4943', '9427', '7945', '7645', '1709', '6515', '2249', 'l', 'n', 'f', '1935', 'e', 'f', '2977', '8835', 'p', '7753', 'U', '295', 'g', 7147, 2657, 'Z', 'a', 503]

Ex Output:
4943, 9427, 7945, 7645, 1709, 6515, 2249, l, n, f, 1935, e, f, 2977, 8835, p, 7753, U, 295


Ex Input:
['z', 2679, 2175, 2825, 4389, '1307', 'y', '3773', 'n', '5757', 'T', '777', 'I', '5913', 'A', '7575', '1463', '7977', 'v', 'I', '8851', 'a', '3781', 'M', '7869', 'Z', '6315', '4381', '5227', '375', 'o', 'P', 'I', 'Y', 'v', 7015, 9501, 8727, 3059, 2817, 1259, 's', 1489, 6451, 'F', 4577, 'b', 'O', 'q', 3263, 'U', 993, 'q', 'e', 'a'], ['q', 8297, 'S', 'W', 7387, 9253, 3585, 9711, 1031, 'g', 4785, 8551, 4697, 'K', 6153, 8393, 6237, 8495, 'T', 2871, 9143, 5755, 'p', 4259, '1307', 'y', '3773', 'n', '5757', 'T', '777', 'I', '5913', 'A', '7575', '1463', '7977', 'v', 'I', '8851', 'a', '3781', 'M', '7869', 'Z', '6315', '4381', '5227', '375', 'o', 'P', 'q', 6801, 'I', 3701, 3277, 5659, 'X', 'q', 1547, 7217, 'E', 8091, 6117, 8349, 7657, 'g', 's']

Ex Output:

1307, y, 3773, n, 5757, T, 777, I, 5913, A, 7575, 1463, 7977, v, I, 8851, a, 3781, M, 7869, Z, 6315, 4381, 5227, 375, o, P