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:
['s', 5961, 'F', 6419, 7317, 2921, 'K', 3199, 2351, 9853, 4811, 3231, '5953', '1493', '173', '425', 'O', 'L', '9941', 'J', 'p', '1999', '9613', '4401', '1875', 'F', 'i', '7537', '8471', '1193', 'Q', 7059, 6673], ['Z', 2529, '5953', '1493', '173', '425', 'O', 'L', '9941', 'J', 'p', '1999', '9613', '4401', '1875', 'F', 'i', '7537', '8471', '1193', 'x', 825, 'e', 'I', 'G', 'n', 2345]

Ex Output:
5953, 1493, 173, 425, O, L, 9941, J, p, 1999, 9613, 4401, 1875, F, i, 7537, 8471, 1193


Ex Input:
['l', 6817, 'G', 3995, 6097, 671, 6515, 'l', 9431, 'f', 'd', 'V', 'R', 1157, 2615, 'e', 9475, 6407, 'Y', 's', 'R', 'L', 'k', '9657', '2833', 'M', '9947', 'a', '6445', '1379', '949', '2579', '1179', 'n', '7809', '5051', 'd', '6765', 'm', '821', '9863', '9623', '8883', '8537', 'x', 'W', 'i', 'i', 5261, 'w', 'M', 'C', 4631, 'i', 5287, 6657, 'W', 251, 'Y', 'j'], ['R', 1845, 'U', 1173, 3165, 4753, 3813, 9565, 'N', 'Y', 2027, '9657', '2833', 'M', '9947', 'a', '6445', '1379', '949', '2579', '1179', 'n', '7809', '5051', 'd', '6765', 'm', '821', '9863', '9623', '8883', '8537', 'x', 'W', 'i', 'm', 'q', 883, 7285, 'S', 477, 'N', 7749, 'T', 4667, 4753, 2045, 5619, 9927, 'w', 'I', 'f', 7363, 1175, 'i', 6291, 'w', 'h', 'z']

Ex Output:

9657, 2833, M, 9947, a, 6445, 1379, 949, 2579, 1179, n, 7809, 5051, d, 6765, m, 821, 9863, 9623, 8883, 8537, x, W, i