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

Ex Input:
['W', 'A', '5747', 'i', 'M', 'N', 8861], [1997, 'D', 5205, '5747', 'i', 'M', 'D', 3319, 1895]

Ex Output:
5747, i, M


Ex Input:
['c', 3869, 'X', 9543, 'y', 3435, 'k', 'L', 9191, 'C', 'X', 'U', 'w', 'z', 'y', '6225', 's', '1927', '1777', 'N', '8311', 'B', 'q', 'r', '4829', 'r', '5909', 'e', 'G', 'J', '9631', 'V', 'b', 'G', 'g', 'g', 5369, 7691], ['Z', 'i', 'X', 'U', 'w', 'z', 'y', '6225', 's', '1927', '1777', 'N', '8311', 'B', 'q', 'r', '4829', 'r', '5909', 'e', 'G', 'J', '9631', 'o', 2079, 1461, 633, 3253, 8295, 3637, 'q', 'r', 8737, 'i']

Ex Output:
X, U, w, z, y, 6225, s, 1927, 1777, N, 8311, B, q, r, 4829, r, 5909, e, G, J, 9631


Ex Input:
[3903, 8823, 7373, 8031, 'A', 3187, 9553, 'q', '309', '2203', '7173', 'd', 's', '5955', 'L', 'e', '4367', '7465', 'n', 'b', '739', '541', 'M', '9341', '7289', 'o', '5351', '3719', 'n', '4455', 'F', '1773', 'w', 'k', 51, 7619, 'E', 't'], [8435, 'g', 3547, 'c', 'm', 5915, 'l', 865, 4309, 'T', 'q', '309', '2203', '7173', 'd', 's', '5955', 'L', 'e', '4367', '7465', 'n', 'b', '739', '541', 'M', '9341', '7289', 'o', '5351', '3719', 'n', '4455', 'F', '1773', 's', 'r', 'p', 2821, 'G']

Ex Output:

q, 309, 2203, 7173, d, s, 5955, L, e, 4367, 7465, n, b, 739, 541, M, 9341, 7289, o, 5351, 3719, n, 4455, F, 1773