Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['g', 1831, 'E', 'X', 'F', 3879, 729, 645, 'Q', 'a', 'y', 'b', 'b', 'E', 'n', 'W', 4347, 'y', 7611, '8243', 'w', '1143', '3589', 'z', 'x', 'B', 'l', 'P', '9655', 'B', 'M', 'R', 'B', '3463', '335', 'O', '5843', '4963', 'Q', 'c', 'l', 'i', 5033, 5043, 'V'], [4045, 2183, 'z', 7751, 3889, 'A', 'O', '8243', 'w', '1143', '3589', 'z', 'x', 'B', 'l', 'P', '9655', 'B', 'M', 'R', 'B', '3463', '335', 'O', '5843', '4963', 'Q', 'A', 9533, 8015, 7811, 'v', 'l', 'q', 7651, 'y', 7285, 'x', 'V', 3343]
Output:
8243, w, 1143, 3589, z, x, B, l, P, 9655, B, M, R, B, 3463, 335, O, 5843, 4963, Q