Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [8193, 'v', 2381, 'z', 2005, 8941, 3585, 'c', 9845, 7063, 3869, 7981, 'r', 9675, '7215', '3313', 'Z', 'e', 'e', 'G', 'X', '8221', 'q', 'T', 'l', 'D', 'G', 'e', '5309', '6709', '853', '6341', 'm', '8707', '595', 'q', '8861', 't', 6141, 'w', 6753, 'q', 'o', 'F', 1407], [7485, 4659, 'c', 'z', 'U', 'i', 3173, 'z', 'Z', 'm', 4877, 5243, 5251, 1543, 1227, 'f', 't', 7041, 'i', 'Y', 6605, '7215', '3313', 'Z', 'e', 'e', 'G', 'X', '8221', 'q', 'T', 'l', 'D', 'G', 'e', '5309', '6709', '853', '6341', 'm', '8707', '595', 'q', '8861', 'O', 8381, 2521]
Output:
7215, 3313, Z, e, e, G, X, 8221, q, T, l, D, G, e, 5309, 6709, 853, 6341, m, 8707, 595, q, 8861