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

Example Input: [5625, 6017, 'd', 'p', '4423', '77', 'E', '5271', 'A', 1553, 'c'], ['U', 1615, 'u', 'd', 'p', '4423', '77', 'E', '5271', 'x', 'w', 'Y']
Example Output: d, p, 4423, 77, E, 5271

Example Input: [2471, 'o', 'j', 'J', 7539, 8949, 2023, 'b', 'w', 9935, 'i', 'A', '843', 'E', 'Q', 'M', '3185', 'h', 'u', 'K', 'D', '5655', '2057', '1169', 'Q', 'Y', 2199], [2019, 'Y', 2557, 2337, 'p', 'i', 'A', '843', 'E', 'Q', 'M', '3185', 'h', 'u', 'K', 'D', '5655', '2057', '1169', 'g', 7743, 'L', 'A', 5137, 3587, 'V', 1399]
Example Output: i, A, 843, E, Q, M, 3185, h, u, K, D, 5655, 2057, 1169

Example Input: [9815, 9565, 'R', 'E', 'H', 1133, 'O', '4067', 'y', 'a', '3805', '5483', '1603', 'n', '5565', 'r', 'i', 'F', 3653, 8183], ['w', 'i', 2647, 'Q', 't', 'P', 'g', 7525, 'D', 2841, 'O', '4067', 'y', 'a', '3805', '5483', '1603', 'n', '5565', 'r', 'i', 'k', 8185, 7655, 5059, 'b', 'S', 'q', 'C', 3687]
Example Output:
O, 4067, y, a, 3805, 5483, 1603, n, 5565, r, i