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

Ex Input:
[4041, 'A', '9609', 'E', 'r', 'd', 'u', 'S', '7397', '8573', '4893', 'T', 't', 'K', '7425', 'E', 'J', 'Q', 'U', '1407', '3419', '1193', 'H', '7525', 'H', 4635, 7087, 8857, 1057, 1877, 'U', 'V', 7175, 'r', 4599], [801, 8323, 7503, 'U', 381, 'd', 'y', 453, 1687, 'R', '9609', 'E', 'r', 'd', 'u', 'S', '7397', '8573', '4893', 'T', 't', 'K', '7425', 'E', 'J', 'Q', 'U', '1407', '3419', '1193', 'H', '7525', 'j', 2559, 3465, 'C', 'I', 5493, 'X', 'r']

Ex Output:
9609, E, r, d, u, S, 7397, 8573, 4893, T, t, K, 7425, E, J, Q, U, 1407, 3419, 1193, H, 7525


Ex Input:
['J', 'h', '8587', 'b', 't', 'k'], [8955, 7253, '8587', 'b', 'e', 8655]

Ex Output:
8587, b


Ex Input:
['f', 999, 8589, 'N', 'i', 'q', 's', 5189, 4961, '37', '6471', '6635', 's', '2205', '8707', 'l', '477', '6477', 'm', 'O', '1155', 'L', 'g', 'o', '227', 'B', 't', 'o', 'n', 'C', '5711', '479', 'B', 'k', 'X', 'S', 'W', 'X'], ['m', 2511, 'f', 2183, 6907, 7813, 'Y', 7813, 4861, 2167, 'D', 7545, 'K', 3339, 4395, 'Q', 9285, 5857, 'x', 'a', 'G', 'k', 1163, 'u', '37', '6471', '6635', 's', '2205', '8707', 'l', '477', '6477', 'm', 'O', '1155', 'L', 'g', 'o', '227', 'B', 't', 'o', 'n', 'C', '5711', '479', 'B', 'k', 'X', 'u', 8621, 'n', 6713, 'J', 3289, 6211, 1373, 'L', 647, 'E', 6635, 9071, 'k', 'v', 8367, 9667, 'S', 'w', 'l', 'V', 'g', 'f', 'c']

Ex Output:

37, 6471, 6635, s, 2205, 8707, l, 477, 6477, m, O, 1155, L, g, o, 227, B, t, o, n, C, 5711, 479, B, k, X