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

Ex Input:
[7409, 'l', 'h', '6739', '5187', 'K', 'D', '7539', '5609', 'x', 'p', 'S', 'j', 'j', '3077', '6081', 'd', '61', '2871', 's', 'J', 'M', 'Q', 'R', 5567, 'p', 'L'], [2329, 5573, 'N', 't', 3213, 9107, 9337, 79, 1607, 'J', 'y', 'g', 's', 'h', 4251, 'L', 3147, '6739', '5187', 'K', 'D', '7539', '5609', 'x', 'p', 'S', 'j', 'j', '3077', '6081', 'd', '61', '2871', 's', 'x', 'Q']

Ex Output:
6739, 5187, K, D, 7539, 5609, x, p, S, j, j, 3077, 6081, d, 61, 2871, s


Ex Input:
['B', 'r', 5629, 4409, 7197, 'N', 'x', 'I', '6145', 'i', 'Q', '1033', '2945', 'K', '4931', 'y', 6505, 9149, 'E', 3067, 819], [2523, 'f', 2623, 'I', '6145', 'i', 'Q', '1033', '2945', 'K', '4931', 'a', 5449, 9193, 6325, 'i', 6901, 'E']

Ex Output:
I, 6145, i, Q, 1033, 2945, K, 4931


Ex Input:
['M', 411, 'Z', 'C', 'w', 'Z', '251', 'c', '9989', 'w', 'x', '6847', '5065', 'k', 'i', 'x', 'a', 'I', 'L'], ['N', 'v', 'B', 'w', 'Z', '251', 'c', '9989', 'w', 'x', '6847', '5065', 'k', 'i', 'x', 'a', 'f', 'O', 9363, 3641, 'K', 809, 815, 2433, 8961, 3419]

Ex Output:

w, Z, 251, c, 9989, w, x, 6847, 5065, k, i, x, a