Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['C', 'P', 'b', 'b', 'w', 8549, 6725, 3113, 'l', 5615, 'z', 9585, 3307, 861, 'I', 'p', 'R', 'L', '547', 'C', '5469', '8567', '7885', 'T', '937', '3013', '5049', '3493', 'x', '5689', '2085', 'B', 'T', 'I', '9745', 'X', 'V', 'v', '9619', 'U', 'k', 'J', '5499', '2577', 'p', 'd', 9385, 'p', 1683, 7491, 825, 5977, 7537, 'V'], [8113, 7313, 'y', 'B', 4173, 'L', '547', 'C', '5469', '8567', '7885', 'T', '937', '3013', '5049', '3493', 'x', '5689', '2085', 'B', 'T', 'I', '9745', 'X', 'V', 'v', '9619', 'U', 'k', 'J', '5499', '2577', 'R', 'i', 6209, 'e', 'o', 'r', 'x', 'R', 307, 'X', 5097, 5383, 2473, 'M', 3837, 'r', 'M', 'e', 3389, 'W', 9477, 'x']
Output:
L, 547, C, 5469, 8567, 7885, T, 937, 3013, 5049, 3493, x, 5689, 2085, B, T, I, 9745, X, V, v, 9619, U, k, J, 5499, 2577