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

Ex Input:
['l', 8391, 7237, 'j', 5061, '1867', 'R', '5053', 'H', 'R', 'd', 'K', 8013, 'H'], ['H', 7623, '1867', 'R', '5053', 'H', 'R', 'd', 'e', 3679, 'd', 'M', 'j']

Ex Output:
1867, R, 5053, H, R, d


Ex Input:
['Z', 't', 8725, 'H', 6417, 7935, 'r', '831', 'c', '8509', '8765', '847', '9425', '3691', 'h', 'O', 'j', 'G'], [1931, 'E', 'Y', 9491, '831', 'c', '8509', '8765', '847', '9425', '3691', 'M', 8629, 'z', 'j', 3887]

Ex Output:
831, c, 8509, 8765, 847, 9425, 3691


Ex Input:
[3587, 'W', 1593, 'D', 411, '2247', 'A', 'E', 'S', 'w', '3665', 'o', '3195', 'y', '135', '2441', '6505', 'h', 'E', '165', 'S', '8511', 'c', 7917, 157, 3711, 'L', 'e'], ['L', 2297, 1243, 5345, 5539, 7885, 'h', 7115, 10011, 6173, 'Y', 't', 'e', 'J', 2003, 3043, '2247', 'A', 'E', 'S', 'w', '3665', 'o', '3195', 'y', '135', '2441', '6505', 'h', 'E', '165', 'S', '8511', 's', 891, 7265, 4451, 'E', 9285, 'K', 4789, 8841, 4181, 'm', 8291, 'r', 495, 8215, 'L', 'Q']

Ex Output:

2247, A, E, S, w, 3665, o, 3195, y, 135, 2441, 6505, h, E, 165, S, 8511