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

Ex Input:
['Q', 4345, 'U', 6921, 'y', 57, 8287, 8385, 'O', '3359', 'S', '7355', '2263', 'd', 'd', 'i', 't', 'E', 'X', 'V', 2801], [3259, 'S', 'e', 'n', 'c', 'B', 'O', 217, 'O', '3359', 'S', '7355', '2263', 'd', 'd', 'i', 't', 'E', 'j', 'I', 5767, 'X', 8283, 8895, 'd', 8329]

Ex Output:
O, 3359, S, 7355, 2263, d, d, i, t, E


Ex Input:
['n', 'p', '5665', '9875', 'Z', '9135', 'F', 'r', '2835', 'I', 'n', 'C', 'k', 'k', '9629', 'c', '5603', 'w', '1293', '6133', 'G', '1869', 'B', 'g', 's', 'X', 'M', '1433', '8999', 'K', '4555', 'L', 'c', 'X', 5517, 'A', 'U', 'p', 'q', 'd', 9425, 'P', 'P', 4407, 3953, 'r', 'u', 9549, 'Z', 1339, 'P', 's', 769, 'z', 'h', 'x', 4067], ['f', 'P', 'J', 8641, 2081, 'c', 1315, 'K', 8255, 9391, 'A', 'V', 4105, 1301, 8621, 'e', 'N', 673, 2799, 'm', 'j', 3787, 9147, 1157, 'L', 7937, 8973, 6345, 9049, 3903, '5665', '9875', 'Z', '9135', 'F', 'r', '2835', 'I', 'n', 'C', 'k', 'k', '9629', 'c', '5603', 'w', '1293', '6133', 'G', '1869', 'B', 'g', 's', 'X', 'M', '1433', '8999', 'K', '4555', 'L', 'h', 'L', 'x', 9511, 6839, 'y', 9029, 9597, 8967, 'Z', 8653, 8671, 2785]

Ex Output:
5665, 9875, Z, 9135, F, r, 2835, I, n, C, k, k, 9629, c, 5603, w, 1293, 6133, G, 1869, B, g, s, X, M, 1433, 8999, K, 4555, L


Ex Input:
[3771, 'd', 'g', 4935, 1967, 5445, 'Y', 'U', 'U', 'o', 6411, 4013, 4597, 'b', 'U', 'd', '3029', '329', 'b', 'K', 'E', 'd', 'W', 'Z', '4909', 'u', '9635', '6395', 'M', 'J', 'W', '3807', 'A', '1181', 'Y', 2387, 'm', 8159, 'N', 2229], ['Q', 1113, 'P', 'U', 'd', '3029', '329', 'b', 'K', 'E', 'd', 'W', 'Z', '4909', 'u', '9635', '6395', 'M', 'J', 'W', '3807', 'A', '1181', 'C', 635, 795, 667, 9363, 9365, 'x', 'R', 'e', 3233, 8695]

Ex Output:

U, d, 3029, 329, b, K, E, d, W, Z, 4909, u, 9635, 6395, M, J, W, 3807, A, 1181