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

Input: Consider Input: [5911, 'u', 6309, 9397, 9345, 7997, 'U', 'w', 'q', '7585', '3117', '4453', '3581', 'O', 'j', '3815', 'i', 'h', '1507', '3615', 'f', 'f', '2177', '3449', '1243', '5695', 'R', 'Z', 6167, 8919, 'M', 2389, 1105, 5255], ['d', 'F', 'w', 'q', '7585', '3117', '4453', '3581', 'O', 'j', '3815', 'i', 'h', '1507', '3615', 'f', 'f', '2177', '3449', '1243', '5695', 'e', 't', 8685, 'R', 'J', 5015, 8735, 'W', 5913]

Output: w, q, 7585, 3117, 4453, 3581, O, j, 3815, i, h, 1507, 3615, f, f, 2177, 3449, 1243, 5695


Input: Consider Input: [8937, 'k', 'O', 'p', 'C', 1375, 'i', 'X', 'l', 'L', 'u', 'C', 5395, 'n', 6919, 8055, 1091, '789', 'M', 'c', '431', '3497', '6001', '3601', 'Q', 'R', 'k', 'D', 'k', 'q', '343', 'b', 'j', '4465', '7421', '3927', 'G', '6047', '8287', '187', '2247', 'w', 'S', 'c', 'v', 'X', 'm', 'b', 'a', 'l', 'l', 'w', 'R', 'b', 'W'], [6245, 6001, 'm', 'L', 'o', 7883, 'v', 833, 'n', 9131, 'F', 913, 'z', 'A', 'p', 'v', 4669, 't', 'i', 5055, 8833, 2829, '789', 'M', 'c', '431', '3497', '6001', '3601', 'Q', 'R', 'k', 'D', 'k', 'q', '343', 'b', 'j', '4465', '7421', '3927', 'G', '6047', '8287', '187', '2247', 'w', 'S', 'c', 'v', 'X', 'k', 2275, 'p', 1367, 4807, 5581, 7895]

Output: 789, M, c, 431, 3497, 6001, 3601, Q, R, k, D, k, q, 343, b, j, 4465, 7421, 3927, G, 6047, 8287, 187, 2247, w, S, c, v, X


Input: Consider Input: [5939, 4543, 'X', 'g', 'k', 3991, 'o', 4931, 6899, 'm', 6355, 'c', 2249, 'Z', 'l', 1529, 'F', 'A', 4819, 'n', 'G', '5071', 'r', 'C', 'k', '8257', 'J', '1771', 'N', '2049', '61', 't', '641', '7167', 'G', '6993', '7731', '3887', '9005', '9981', 'u', 'i', '2107', 'G', '3837', 'a', 'w', 'a', 't', 'Q'], [4083, 9289, 'n', 'G', '5071', 'r', 'C', 'k', '8257', 'J', '1771', 'N', '2049', '61', 't', '641', '7167', 'G', '6993', '7731', '3887', '9005', '9981', 'u', 'i', '2107', 'G', '3837', 'a', 'L', 'H', 'z']


Output: n, G, 5071, r, C, k, 8257, J, 1771, N, 2049, 61, t, 641, 7167, G, 6993, 7731, 3887, 9005, 9981, u, i, 2107, G, 3837, a