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

Ex Input:
[4717, 'J', 'B', 'f', 'a', 9035, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'F', 5099], ['Q', 3557, 'y', 2689, '3041', '491', '3395', '3117', '4793', '4305', 'c', 'k', 8835, 'C', 8979]

Ex Output:
3041, 491, 3395, 3117, 4793, 4305, c


Ex Input:
[7299, 'v', 7279, 'o', 2589, 'K', '4943', '9427', '7945', '7645', '1709', '6515', '2249', 'l', 'n', 'f', '1935', 'e', 'f', '2977', '8835', 'p', '7753', 'U', '295', 'f', 1935, 'V', 9979, 3301, 'Z', 'J', 521, 871, 'Z', 'R', 7831, 'T', 'h', 3231, 'e', 2391], [7491, 'k', 4137, 'P', 'F', 8159, 'x', 6363, 2449, 7479, 6825, 7107, 'I', 2931, 7047, 9149, '4943', '9427', '7945', '7645', '1709', '6515', '2249', 'l', 'n', 'f', '1935', 'e', 'f', '2977', '8835', 'p', '7753', 'U', '295', 'g', 7147, 2657, 'Z', 'a', 503]

Ex Output:
4943, 9427, 7945, 7645, 1709, 6515, 2249, l, n, f, 1935, e, f, 2977, 8835, p, 7753, U, 295


Ex Input:
[5, 'z', 7591, 'P', 'S', 9123, 'K', 'E', '6447', '5323', '4387', 'e', 'D', 'H', 'D', 'z', 'd', '6741', '9677', '2287', '531', '1653', '7151', 'B', '2725', 'z', 'A', 'x', '4945', 'p', '9731', 'o', 'h'], [1659, 'J', 3997, 'S', 'z', 7609, 7965, 8131, 991, 'E', 'f', 275, 't', 8883, 4161, 'a', 'o', 5761, 6337, 965, 'c', 'K', 'E', '6447', '5323', '4387', 'e', 'D', 'H', 'D', 'z', 'd', '6741', '9677', '2287', '531', '1653', '7151', 'B', '2725', 'z', 'A', 'x', '4945', 'p', '9731', 'n', 5893, 1085, 'I', 6825, 't', 8651, 'y', 4897, 't', 'T', 175, 'X', 9331, 'j', 371, 859, 'n', 'H', 'p']

Ex Output:

K, E, 6447, 5323, 4387, e, D, H, D, z, d, 6741, 9677, 2287, 531, 1653, 7151, B, 2725, z, A, x, 4945, p, 9731