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

Ex Input:
['S', 'o', 9247, 'W', 'G', 5923, 4791, '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 's', 'T', 5829, 'p'], ['K', 'U', 'H', 8611, 1005, 'I', '8083', '3207', '9137', '9359', '9297', '9667', '75', 'h', '9671', 'C', 9577, 8279, 2247, 'x', 4917, 'H']

Ex Output:
8083, 3207, 9137, 9359, 9297, 9667, 75, h, 9671


Ex Input:
[737, 'z', 4401, 6317, 't', 'B', 3815, 'm', 'G', '8709', '4749', 'J', '8885', 'k', 'Y', '3083', 'X', '8267', 'T', 'A', 'A', '7049', '6681', '6111', 's', 't', 'h', 1687, 'T', 'O', 'A', 'r', 'U', 6703, 'u', 'm', 1571, 'J', 2289, 8279], [5617, 'D', 'p', '8709', '4749', 'J', '8885', 'k', 'Y', '3083', 'X', '8267', 'T', 'A', 'A', '7049', '6681', '6111', 's', 'n', 5571, 8277, 'D', 1885, 7949, 3767, 'o', 'K', 5755, 'v', 9117, 's', 'b']

Ex Output:
8709, 4749, J, 8885, k, Y, 3083, X, 8267, T, A, A, 7049, 6681, 6111, s


Ex Input:
[5117, 2705, 833, 605, 2635, 4365, 3729, 'f', 'z', 7353, 4833, 'C', 'q', '8825', 'P', '809', 'T', '9825', '7199', '4249', '9575', 'N', 'q', 'M', 857, 5943, 'j', 'y', 'N', 'c', 5503], [10017, 'I', 9715, 5539, 6909, 4215, 'C', 'q', '8825', 'P', '809', 'T', '9825', '7199', '4249', '9575', 'N', 'q', 'e', 1035, 'U', 6673, 'P', 3537, 'S']

Ex Output:

C, q, 8825, P, 809, T, 9825, 7199, 4249, 9575, N, q