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

Example Input: [9875, 'g', 8729, 'h', 'F', 'v', 'v', 8307, 6379, 3165, 7055, 'f', 'p', 3707, 'P', 6305, 'h', '9891', '2783', 'D', '7567', '95', 'T', 'U', '2035', 'W', 'C', 'B', '9943', 'B', '9033', '6511', 'e', '2623', 'O', 'Z', 'k', 7761], [9061, 1241, 'd', 3917, 'm', 9457, 'n', 1493, 725, 'O', 'h', '9891', '2783', 'D', '7567', '95', 'T', 'U', '2035', 'W', 'C', 'B', '9943', 'B', '9033', '6511', 'e', '2623', 'O', 'Z', 'o', 'J', 'c', 6919, 'O', 'O', 8809, 'J', 'v', 'O', 4633, 941, 'z', 6667, 'X', 'C', 'd', 5189]
Example Output: h, 9891, 2783, D, 7567, 95, T, U, 2035, W, C, B, 9943, B, 9033, 6511, e, 2623, O, Z

Example Input: ['B', 6743, 'l', 'I', 2773, 'a', 8205, 7127, 5877, 8427, 'a', 'F', 929, '2299', 'P', '3045', 'x', 'i', '9095', '4061', 'j', 'd', 'E', 'l', '1497', 'E', 'U', '6491', '1385', 'K', 'k', 'n', 'd', 'u', 'G', 'O', 'B', 5921], [4461, 'g', 'w', 2465, 'N', 85, 2921, 2129, 'z', 6211, 3077, 4427, 4327, 6595, '2299', 'P', '3045', 'x', 'i', '9095', '4061', 'j', 'd', 'E', 'l', '1497', 'E', 'U', '6491', '1385', 'K', 'k', 'n', 'r', 383, 5359, 9209, 'Q', 5765, 5453, 'V', 'w', 'R', 2919, 1949, 'L', 8175, 'g', 'n', 6677, 899]
Example Output: 2299, P, 3045, x, i, 9095, 4061, j, d, E, l, 1497, E, U, 6491, 1385, K, k, n

Example Input: [5667, 7275, 'x', '5405', 'h', 'r', 'F', 'T', 2039], ['s', 'H', 129, 'x', '5405', 'h', 'r', 'Q', 'O', 8107]
Example Output:
x, 5405, h, r