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

Ex Input:
[6551, 'm', 4517, 'K', 9519, 'N', 6797, 'A', 'a', 5043, 2961, 1305, 'J', 'M', 'g', 5639, 6235, '9717', '6917', '7949', 'e', '2855', 'V', '4493', 'G', '375', 'e', '9909', 'J', 't', 'N', '4535', '9963', '8917', 'W', 'P', 'd', 9867, 6599, 'W', 'N', 4217, 'c', 5009], ['t', 9641, 7799, '9717', '6917', '7949', 'e', '2855', 'V', '4493', 'G', '375', 'e', '9909', 'J', 't', 'N', '4535', '9963', '8917', 'W', 'U', 'f', 8123, 'U', 3339, 4751]

Ex Output:
9717, 6917, 7949, e, 2855, V, 4493, G, 375, e, 9909, J, t, N, 4535, 9963, 8917, W


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:
[8813, 3541, '6067', '9613', 'c', 'I', '7385', 'N', '6677', '9411', '2147', '9177', 'G', 'R', 'H', 'B', 'K', 'j', 'y', 7173, 4831, 8997, 'd', 4869, 'y', 5879, 'Q', 9407, 'P', 'n', 'E'], ['T', 'H', 'W', 'c', 5913, 7797, 8727, 'i', 6001, 'I', 'T', '6067', '9613', 'c', 'I', '7385', 'N', '6677', '9411', '2147', '9177', 'G', 'R', 'H', 'B', 'K', 'j', 'q', 6093, 2317, 1465, 'B', 'W', 'f', 'i', 'k', 465, 445]

Ex Output:

6067, 9613, c, I, 7385, N, 6677, 9411, 2147, 9177, G, R, H, B, K, j