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

Example Input: [2787, 'N', 'I', 'M', 'x', '3825', 'r', '1041', 'y', 'a', 'v', 6057], ['F', 6523, 'x', '3825', 'r', '1041', 's', 'C', 3001, 8425]
Example Output: x, 3825, r, 1041

Example Input: ['N', 7229, '4831', 'P', 'E', 7925], [3857, 'C', '4831', 'P', 'g', 'p']
Example Output: 4831, P

Example Input: ['F', 'M', 9089, 'G', 8287, 2339, 'c', 3147, 9423, '4977', '4905', '7849', 'y', 'g', '5705', '21', 'u', '7843', 'o', 5565, 'f', 'e', 1383, 'u', 'm', 5655, 'c'], [5595, 1241, 'Q', '4977', '4905', '7849', 'y', 'g', '5705', '21', 'u', '7843', 'D', 1527, 10029, 2847, 'f', 't', 1465, 'g']
Example Output:
4977, 4905, 7849, y, g, 5705, 21, u, 7843