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

Ex Input:
['U', 6489, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'I', 'B', 'R', 'N', 9533, 'd'], ['U', 4287, 'f', 'R', 1407, 3893, 6739, 'o', 'e', 'Z', 'G', '8175', 'r', '1915', '8587', '8845', 'Z', 2981, 'i', 'a', 'k', 5909, 'S', 9997]

Ex Output:
o, e, Z, G, 8175, r, 1915, 8587, 8845


Ex Input:
[4275, 8037, 5099, 'T', 2089, 'E', 5305, 'r', 'k', 9537, '57', 'v', '6257', '5991', '6455', 'a', '9565', '885', 'F', '2219', '2797', '9309', 'J', 'O', 2707, 8633, 8875, 9045, 'q'], [3221, 'f', 3167, '57', 'v', '6257', '5991', '6455', 'a', '9565', '885', 'F', '2219', '2797', '9309', 'J', 'C', 3665, 'm', 6901, 3441, 5601, 6983, 'i', 'z']

Ex Output:
57, v, 6257, 5991, 6455, a, 9565, 885, F, 2219, 2797, 9309, J


Ex Input:
[461, 'Q', 'u', 'l', 'E', 'n', 'T', 'P', 'Y', 8909, 8141, 'F', 'T', 'W', 'w', 'd', '4527', 'Z', '1901', '5971', 'M', '1863', 'P', 'C', 'z', '4955', '531', 'p', 'n', '7423', 'z', '5499', 'H', '2811', 'l', 1797, 8413, 5265, 'G', 3009, 5819, 3513, 'j', 9285, 'U', 9623, 8963], [3647, 'E', 7029, 'N', 'e', 'i', 'm', 1361, 'B', 5903, 'i', 9067, 'd', '4527', 'Z', '1901', '5971', 'M', '1863', 'P', 'C', 'z', '4955', '531', 'p', 'n', '7423', 'z', '5499', 'H', '2811', 'b', 'G', 'w', 'm', 'Y', 'p', 9843, 2269, 471, 8273, 3165, 431, 2761, 'i']

Ex Output:

d, 4527, Z, 1901, 5971, M, 1863, P, C, z, 4955, 531, p, n, 7423, z, 5499, H, 2811