Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [7751, 'j', 1595, 'l', 5507, 'e', 'M', 'x', 2737, 6075, 'E', 'T', 'X', 1751, 9965, 2403, 'e', 'm', 8501, 't', 4853, '6667', '6369', 'H', 't', 'b', 'X', 'w', 'a', '9855', 'c', '5739', '7571', '6651', '963', 'a', 's', '9493', '2163', '9901', 'a', '2879', 'W', 'M', '4135', 'h', '9439', '2083', '4015', 'x', 1431, 1845, 883, 'E', 'z', 2907, 9723, 9539, 's', 8275, 'O', 6525, 1745], ['o', 'f', 'x', 'y', 'i', 'y', 8109, 2111, 3299, 2075, 8643, 'C', '6667', '6369', 'H', 't', 'b', 'X', 'w', 'a', '9855', 'c', '5739', '7571', '6651', '963', 'a', 's', '9493', '2163', '9901', 'a', '2879', 'W', 'M', '4135', 'h', '9439', '2083', '4015', 'C', 7349, 629, 'k', 8687, 'r', 'm', 'q', 'r', 9789, 'C', 'e', 9385, 't', 1253, 6955, 'l', 8225, 3983, 'k', 'R', 3039]
Output:
6667, 6369, H, t, b, X, w, a, 9855, c, 5739, 7571, 6651, 963, a, s, 9493, 2163, 9901, a, 2879, W, M, 4135, h, 9439, 2083, 4015