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

Ex Input:
['i', 4077, 'Z', 6231, 2337, 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'd', 1355, 'n'], [505, 'A', 8789, 75, 'q', 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'e', 'r', 'I', 'm', 1525, 3577]

Ex Output:
h, 1181, 1631, 2605, 587, 1477, 2707, R, O


Ex Input:
[2803, 'l', 8379, 'r', 'b', 2363, 'P', 'K', 's', 3999, 't', 167, 'N', '9089', '4973', '7373', '8759', 'W', 'r', '6259', '9427', 'c', 'Q', '2311', '5829', 'O', '7913', '1539', 'r', 'e', 'd', '9025', 'M', 7681, 'e', 'm', 'a', 1365, 'm', 'm', 'v', 'P', 'M', 3649, 7257, 'q', 9843, 831, 'U', 'b'], ['A', 'm', 9121, 'h', 'p', 'k', 'P', 4077, 'd', 3595, 1689, 'D', 'C', 'l', 'I', 'Y', 'N', '9089', '4973', '7373', '8759', 'W', 'r', '6259', '9427', 'c', 'Q', '2311', '5829', 'O', '7913', '1539', 'r', 'e', 'd', '9025', 'K', 2849, 'i', 'K', 'N', 'u', 1811, 967, 2799, 'u', 'C', 637, 1911, 6151, 'L']

Ex Output:
N, 9089, 4973, 7373, 8759, W, r, 6259, 9427, c, Q, 2311, 5829, O, 7913, 1539, r, e, d, 9025


Ex Input:
[6453, 7881, 'D', 'X', '9799', 'Z', '1711', 'P', 'L', 'E', '5039', '1161', 'n', '6077', '685', 'F', 'C', 'Y', 2235, 823, 'q', 'S', 'R', 'K', 2809, 'o', 7605, 'L', 'V', 'D', 'R'], [1195, 'n', 5253, 7139, 4463, 10023, 'O', 'Y', 'X', '9799', 'Z', '1711', 'P', 'L', 'E', '5039', '1161', 'n', '6077', '685', 'F', 'C', 'L', 4321, 3545, 'G', 'G', 'h']

Ex Output:

X, 9799, Z, 1711, P, L, E, 5039, 1161, n, 6077, 685, F, C