Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['u', 'f', 'p', 'x', 'C', 'X', 'e', 8465, 6391, 'A', 'j', 131, 'X', 'k', 5477, 'k', 'T', 5355, 's', 6799, 8593, 7969, 5191, '5513', '6281', 'k', 'G', 'L', 'M', 'P', 'G', 'D', '2061', '1721', 'U', '6379', '2671', '8441', 'Z', 'j', '399', 'C', '4585', '5519', 'r', 'L', '3217', '7351', '6193', 'h', 1877, 9755, 9899, 8297, 851, 'H', 'n', 'A', 1535, 4505, 'D'], [7039, 4223, 'w', 'f', 'v', 7687, 8811, 'w', 'c', 9503, 'R', 'V', 3265, 8215, 'f', 5967, 561, 279, 4825, '5513', '6281', 'k', 'G', 'L', 'M', 'P', 'G', 'D', '2061', '1721', 'U', '6379', '2671', '8441', 'Z', 'j', '399', 'C', '4585', '5519', 'r', 'L', '3217', '7351', '6193', 'd', 63, 669, 'w', 3217, 'p', 4103, 4607, 'Q', 'G', 6563, 8963, 6023, 'S', 2849, 'D', 'p']
Output:
5513, 6281, k, G, L, M, P, G, D, 2061, 1721, U, 6379, 2671, 8441, Z, j, 399, C, 4585, 5519, r, L, 3217, 7351, 6193