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

Input: Consider Input: ['d', 6171, 9855, 'D', 'e', '299', 'y', 'U', 'n', 'x', 'f', 2817, 7263, 2945, 'h'], [5759, 2135, '299', 'y', 'U', 'n', 'x', 'g', 2571, 'd']

Output: 299, y, U, n, x


Input: Consider Input: [4961, 'H', 9957, 'w', 'K', 'Y', 3375, 'S', '3191', '4439', 'C', '1965', '2787', '4507', 'y', 2753, 2989, 6093, 7091, 8043, 'c'], [9279, 'S', 6127, 5845, 237, 'S', '3191', '4439', 'C', '1965', '2787', '4507', 'w', 9497, 'K', 2297]

Output: S, 3191, 4439, C, 1965, 2787, 4507


Input: Consider Input: ['W', 'l', 'N', '5605', '2105', 'B', '9273', 'K', 'f', 'E', '1843', 'R', '8767', '1303', '2821', 'a', 'm', 'w', '243', 'g', '2897', 'Y', 'm', 'j', 9821, 'n', 'h', 'D'], [6371, 9433, 6091, 'w', 'l', 8643, '5605', '2105', 'B', '9273', 'K', 'f', 'E', '1843', 'R', '8767', '1303', '2821', 'a', 'm', 'w', '243', 'g', '2897', 'V', 5581, 'a', 6007, 'L', 7649, 'o']


Output: 5605, 2105, B, 9273, K, f, E, 1843, R, 8767, 1303, 2821, a, m, w, 243, g, 2897