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

Ex Input:
[7615, 3985, 'o', 1073, 5157, 5347, '7031', '7637', '6703', '7735', '8445', '9373', 'f', 'x'], [1247, 'x', 5707, 3649, 'g', 'z', '7031', '7637', '6703', '7735', '8445', '9373', 'h', 6317, 'T', 'M', 5703, 'h']

Ex Output:
7031, 7637, 6703, 7735, 8445, 9373


Ex Input:
['g', 305, '8447', 'K', 'y', 'D'], [2445, 5519, '8447', 'K', 't', 'l']

Ex Output:
8447, K


Ex Input:
['B', 'G', 'w', 'j', '6555', 'T', '4035', '5823', 'r', 9045, 'v', 'i'], [2067, 'z', 'j', '6555', 'T', '4035', '5823', 'S', 2289]

Ex Output:

j, 6555, T, 4035, 5823