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

Ex Input:
[9627, 3485, 'B', 'B', 2377, 5949, 6975, 6061, 8717, 'I', 7415, 'v', '3101', '7411', '3847', 'R', '4943', 'r', '2953', 'b', 'W', 'y', '3509', '6167', 'L', 'J', 'B', 'm', 'D', 'e', 3155, 'N', 'y', 5923, 1375, 5079], [883, 'N', 81, 'q', 'd', 'P', 'v', 'v', 6005, 1079, '3101', '7411', '3847', 'R', '4943', 'r', '2953', 'b', 'W', 'y', '3509', '6167', 'L', 'J', 'J', 795, 'g']

Ex Output:
3101, 7411, 3847, R, 4943, r, 2953, b, W, y, 3509, 6167, L, J


Ex Input:
[1893, 1281, 10025, 'E', 2675, 2191, 'A', 4351, 3435, 7087, 'J', 'l', 'w', 'D', 'x', 'n', 4329, 4957, 'l', 'F', '8377', '8425', 't', '9767', 'B', '6243', '5819', '7993', '2429', '3513', 'A', '929', 'H', '7223', 'x', 'x', 'N', '6205', '3829', '8551', '6479', 'Z', '7559', '6201', '9539', 'e', 'R', 'Y', '5015', '7301', 'w', 'g', 'U', 5321, 'i', 4069, 'f', 1415, 'K', 7073, 'J', 'S', 'm', 4119, 'H', 243, 'J', 'Z', 'n'], [6147, 1863, 2545, 3545, 'W', 'B', 'b', 533, '8377', '8425', 't', '9767', 'B', '6243', '5819', '7993', '2429', '3513', 'A', '929', 'H', '7223', 'x', 'x', 'N', '6205', '3829', '8551', '6479', 'Z', '7559', '6201', '9539', 'e', 'R', 'Y', '5015', '7301', 'Y', 7797]

Ex Output:
8377, 8425, t, 9767, B, 6243, 5819, 7993, 2429, 3513, A, 929, H, 7223, x, x, N, 6205, 3829, 8551, 6479, Z, 7559, 6201, 9539, e, R, Y, 5015, 7301


Ex Input:
[6373, 2377, 8751, '4799', '4639', 'H', '5447', 'n', 'q', 'C', 'D', 'j', 'C', 'J', '1579', 'q', '6135', '6267', '7097', 'm', '5405', '10021', 'e', 'J', 'B', 'V', 2951, 'p'], [7881, 5003, 'x', 6177, '4799', '4639', 'H', '5447', 'n', 'q', 'C', 'D', 'j', 'C', 'J', '1579', 'q', '6135', '6267', '7097', 'm', '5405', '10021', 'e', 'U', 7377, 1929, 'h']

Ex Output:

4799, 4639, H, 5447, n, q, C, D, j, C, J, 1579, q, 6135, 6267, 7097, m, 5405, 10021, e