Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [3017, 3221, 1287, 2083, 'G', 'Z', 41, '5327', 'Q', '2873', '4745', 'b', 'H', '9457', 'A', 'Q', '7219', 'u', 3901, 8367, 'z', 'p', 7199, 1177, 6261], [5117, 9831, 'b', '5327', 'Q', '2873', '4745', 'b', 'H', '9457', 'A', 'Q', '7219', 'Z', 3619, 5599, 'b', 9753]
Output:
5327, Q, 2873, 4745, b, H, 9457, A, Q, 7219