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

Ex Input:
['x', 7099, 9059, 865, 'S', 'l', 'V', 8579, 'r', 2823, '9603', 'c', '1545', '7041', 'g', 'd', '1281', '3849', 's', '3959', 'X', 'Q', 'V', 'C', 1583, 531, 'u'], ['T', 7357, 4783, 967, '9603', 'c', '1545', '7041', 'g', 'd', '1281', '3849', 's', '3959', 'U', 229, 'P', 'x', 'T', 681, 863]

Ex Output:
9603, c, 1545, 7041, g, d, 1281, 3849, s, 3959


Ex Input:
[4837, 'e', 'd', 3717, 3245, 'j', 'A', '5181', 'i', 'X', 'h', 'J', 'h', 'S', 801, 5829, 3309], ['K', 'j', 'L', 'N', 4449, 5349, 'A', '5181', 'i', 'X', 'h', 'J', 'c', 7035, 533, 5903, 'n', 'e']

Ex Output:
A, 5181, i, X, h, J


Ex Input:
[6053, 'g', 6839, 323, 1739, 'p', 'A', 'g', '1279', 'e', 'x', '4535', '2643', 'M', '9011', 'k', 'W', 8265, 'q', 8507, 4703, 'S', 'q'], [2629, 8307, 'E', 4557, 9781, 'f', 1881, 'm', 'g', '1279', 'e', 'x', '4535', '2643', 'M', '9011', 'g', 'f']

Ex Output:

g, 1279, e, x, 4535, 2643, M, 9011