In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Example Input: ['d', 6171, 9855, 'D', 'e', '299', 'y', 'U', 'n', 'x', 'f', 2817, 7263, 2945, 'h'], [5759, 2135, '299', 'y', 'U', 'n', 'x', 'g', 2571, 'd']
Example Output: 299, y, U, n, x

Example Input: ['N', 'z', 9641, 'z', 'f', 'o', 'L', 'D', 'w', 2793, 'b'], ['Q', 'R', 'z', 'f', 'o', 'L', 'A', 4343, 8711]
Example Output: z, f, o, L

Example Input: [6445, 'O', 'o', '1803', 'o', 'A', 'u', 'q', 'z'], ['Q', 9741, '1803', 'o', 'A', 'a', 'Q', 3599]
Example Output:
1803, o, A