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

Ex Input:
[337, 2045, 613, 'P', 89, 10003, 'q', 'b', 'n', 6479, 'Y', 'm', 5259, 'c', 9101, 7599, 6353, 5467, 'O', 'U', 'N', 7841, 'S', 'S', '6141', 'p', '9427', 'U', '1347', 'I', '5193', 'O', 'N', 's', '1617', 'e', '2297', 'X', 'y', 'e', '507', 'R', 'a', 'E', 'q', '4953', '729', 'T', 'w', '7017', '8647', 'N', 'w', 7365, 'W', 981, 245, 8933, 'h', 4477, 1395, 'J', 8069, 5313, 'J', 709, 3533, 'b', 8629, 'G', 'P', 'Y', 5397], [3017, 1679, 'O', 'p', 2983, 9493, 4763, 'P', 'Q', 'd', 139, 'i', 2459, 'G', 'c', 299, 'Q', 'Z', 1841, 'S', 'S', '6141', 'p', '9427', 'U', '1347', 'I', '5193', 'O', 'N', 's', '1617', 'e', '2297', 'X', 'y', 'e', '507', 'R', 'a', 'E', 'q', '4953', '729', 'T', 'w', '7017', '8647', 'q', 'k', 825, 'D', 't', 'j', 'T', 6747, 'q', 7211, 'i', 1557, 'f', 7917, 'R', 1325, 6801, 'T', 'Q', 2305, 's', 'K', 'R', 2877, 'p']

Ex Output:
S, S, 6141, p, 9427, U, 1347, I, 5193, O, N, s, 1617, e, 2297, X, y, e, 507, R, a, E, q, 4953, 729, T, w, 7017, 8647


Ex Input:
['T', 5369, 1173, 6093, 'n', 4575, 'h', 7975, 2921, 1655, 'r', 4521, 8665, 1933, 4703, 'N', 7921, '6499', '3029', '5963', 'P', '9959', '2345', '1265', '8097', '4181', 'r', 't', 'X', 's', 'l', 'p', 'F', '1107', '8395', 'A', '1351', 'G', 'G', 'G', '3113', 'q', 'W', 'G', 9031, 8561, 6175, 5329, 5317, 'd'], [7417, 'P', 'q', 'n', 7037, '6499', '3029', '5963', 'P', '9959', '2345', '1265', '8097', '4181', 'r', 't', 'X', 's', 'l', 'p', 'F', '1107', '8395', 'A', '1351', 'G', 'G', 'G', '3113', 'q', 'l', 4415, 'A', 'o']

Ex Output:
6499, 3029, 5963, P, 9959, 2345, 1265, 8097, 4181, r, t, X, s, l, p, F, 1107, 8395, A, 1351, G, G, G, 3113, q


Ex Input:
[6449, 6111, 'V', 4313, 6891, 'v', 2233, 8999, 's', 'y', 'M', 7559, 'K', 'R', 9661, 'C', '1029', 'y', '4251', '5429', '10027', '9587', '3739', 'h', '8893', 'x', '2763', '2389', 'V', '7051', 'e', '9519', 'y', 'N', 'R', 'h', '9289', '7937', 'U', 'v', 'd', 4267, 765, 'd', 'U', 679, 'y', 'B', 2283, 4513, 'w', 631, 'A'], [7771, 2803, 9219, 7633, 'z', 'M', 6231, 'D', 'M', 'h', 8513, 5825, 'f', 'N', 'y', 5081, 'C', '1029', 'y', '4251', '5429', '10027', '9587', '3739', 'h', '8893', 'x', '2763', '2389', 'V', '7051', 'e', '9519', 'y', 'N', 'R', 'h', '9289', '7937', 'U', 'v', 'b', 2793, 5803, 's', 5461, 'b', 6571, 'G', 's', 2407]

Ex Output:

C, 1029, y, 4251, 5429, 10027, 9587, 3739, h, 8893, x, 2763, 2389, V, 7051, e, 9519, y, N, R, h, 9289, 7937, U, v