Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [3611, 4001, 'v', 'P', 'V', 2583, 9543, 1529, 3335, 3999, 'S', 3917, 3153, 'm', 'h', 6665, 7627, '2433', '1143', '2075', 'R', '5765', '10021', '5343', '697', '3209', 't', '3311', '10029', '2805', 'k', 'I', '9407', 'R', '67', 'M', '3081', 'x', 'z', 'C', 'P', 4237, 'e', 6569, 6747, 5853, 'i', 8513, 3377, 8965, 'd', 5017, 'l', 'W', 'D', 'A', 'D', 2015], [2895, 'D', 'r', 111, 3539, 4583, 465, 'l', 1599, 5639, 'V', 6729, 'B', 'g', 'm', 'v', 8161, '2433', '1143', '2075', 'R', '5765', '10021', '5343', '697', '3209', 't', '3311', '10029', '2805', 'k', 'I', '9407', 'R', '67', 'M', '3081', 'x', 'z', 'G', 'V', 3235, 2675, 'd', 'S', 4231, 2891, 6337, 9967, 9209, 5137, 'g', 'a']
Output:
2433, 1143, 2075, R, 5765, 10021, 5343, 697, 3209, t, 3311, 10029, 2805, k, I, 9407, R, 67, M, 3081, x, z