Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [4211, 9129, 'U', 'A', 6859, 1777, 6467, 3495, 'c', 'z', 2397, 393, 'e', 6767, 'd', '2927', 'K', '5805', 'A', '4087', 'A', '1659', '9007', '283', '8947', '5215', '10013', 'v', '4997', '5283', 'N', 2623, 7845, 't', 1057, 'u', 'N', 8265, 8519, 6549, 'D', 'h', 'X', 'G', 'D'], [8653, 8971, 'M', 8021, 7177, 'F', 3843, 'd', '2927', 'K', '5805', 'A', '4087', 'A', '1659', '9007', '283', '8947', '5215', '10013', 'v', '4997', '5283', 'v', 'E', 2673, 947]
Output:
d, 2927, K, 5805, A, 4087, A, 1659, 9007, 283, 8947, 5215, 10013, v, 4997, 5283