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

Ex Input:
[4249, 1307, 'R', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'H', 'K', 7197, 3907, 'I', 5561], [8961, 1477, 'X', 'C', 7153, 1005, 'C', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'L', 7313, 2449, 4181, 1573]

Ex Output:
3377, 9383, w, 7897, S, 1791, f, 6787


Ex Input:
['l', 8391, 7237, 'j', 5061, '1867', 'R', '5053', 'H', 'R', 'd', 'K', 8013, 'H'], ['H', 7623, '1867', 'R', '5053', 'H', 'R', 'd', 'e', 3679, 'd', 'M', 'j']

Ex Output:
1867, R, 5053, H, R, d


Ex Input:
['U', 'T', 3859, 'v', 655, 'k', 9583, 'h', 1643, 7869, 9913, 1861, 8409, 3225, 'P', 'D', 'c', 9981, 'R', '3817', '553', '2493', 'g', '2923', 'z', '4305', '5743', 'M', '7509', '125', '1567', 'g', 'W', '1079', 'H', 'Z', 'G', '9423', '7721', '1149', '3919', 'J', '8843', 'h', '3805', 'B', '8887', 'r', 'Z', 'J', 'i', 'a', 'i', 'F', 3789, 'H', 'Q', 4149, 't'], ['b', 'C', 201, 'J', 5965, 379, 591, 'V', 'W', 'i', 'I', 7237, 4175, 'Q', 'y', 'V', 1425, 1681, 'q', 2615, 'l', 3201, 1787, 'e', 8483, '3817', '553', '2493', 'g', '2923', 'z', '4305', '5743', 'M', '7509', '125', '1567', 'g', 'W', '1079', 'H', 'Z', 'G', '9423', '7721', '1149', '3919', 'J', '8843', 'h', '3805', 'B', '8887', 'O', 315, 7867, 1041, 'n', 8809, 3169, 'J', 'O', 'L', 'D', 'f', 9181, 8371, 9799, 'c', 'n', 'R', 't']

Ex Output:

3817, 553, 2493, g, 2923, z, 4305, 5743, M, 7509, 125, 1567, g, W, 1079, H, Z, G, 9423, 7721, 1149, 3919, J, 8843, h, 3805, B, 8887