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

Ex Input:
[605, 'W', 7189, 'X', '7897', '5823', 'P', '9001', 'J', 'r', 2595], ['z', 'W', '7897', '5823', 'P', '9001', 'J', 'Z', 'w']

Ex Output:
7897, 5823, P, 9001, J


Ex Input:
[9995, 237, 'f', 'q', '4659', 'C', '1809', 'g', '8581', '3805', '8549', 'H', '8421', 'J', '889', '1383', 'a', 'u', 'u', 'i', 6289, 6979, 8697, 9881, 1747, 4169, 99, 'V', 261, 'n', 2261, 9455], [5613, 'B', 'z', 3941, 571, 9137, 'G', 'a', 3419, 2805, 1425, 'x', 'f', 'q', '4659', 'C', '1809', 'g', '8581', '3805', '8549', 'H', '8421', 'J', '889', '1383', 'a', 'u', 'u', 'n', 3707, 5783]

Ex Output:
f, q, 4659, C, 1809, g, 8581, 3805, 8549, H, 8421, J, 889, 1383, a, u, u


Ex Input:
['u', 6097, 'J', 7797, 1503, 'R', '489', '9049', '431', 'l', 'L', '2449', 'U', 'k', 529, 8779, 1407, 'r'], ['m', 'A', 2951, 'j', 'V', 'R', '489', '9049', '431', 'l', 'L', '2449', 'x', 'm', 'B', 5559, 1921]

Ex Output:

R, 489, 9049, 431, l, L, 2449