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

Example Input: [1249, 4091, 'E', 483, 'O', 8427, '5009', 'X', 'Q', '107', 'F', '6119', '4479', 'u', 'o', 'U', '4405', '1737', 'K', 'j', 'B', 'U', 2857, 's'], ['J', 'B', 8825, 9581, '5009', 'X', 'Q', '107', 'F', '6119', '4479', 'u', 'o', 'U', '4405', '1737', 'K', 'j', 'B', 'E', 'e', 'R', 'X', 1739, 'D', 1385, 'e', 6969]
Example Output: 5009, X, Q, 107, F, 6119, 4479, u, o, U, 4405, 1737, K, j, B

Example Input: [9995, 237, 'f', 'q', '4659', 'C', '1809', 'g', '8581', '3805', '8549', 'H', '8421', 'J', '889', '1383', 'a', 'u', 'u', 'i', 6289, 6979, 8697, 9881, 1747, 4169, 99, 'V', 261, 'n', 2261, 9455], [5613, 'B', 'z', 3941, 571, 9137, 'G', 'a', 3419, 2805, 1425, 'x', 'f', 'q', '4659', 'C', '1809', 'g', '8581', '3805', '8549', 'H', '8421', 'J', '889', '1383', 'a', 'u', 'u', 'n', 3707, 5783]
Example Output: f, q, 4659, C, 1809, g, 8581, 3805, 8549, H, 8421, J, 889, 1383, a, u, u

Example Input: [4845, 3095, 6071, 'd', 'd', '5689', 'X', '5727', '4407', 'x', 'z', 'K', 6163, 'a'], [3025, 'O', 'd', '5689', 'X', '5727', '4407', 'B', 'T', 8693]
Example Output:
d, 5689, X, 5727, 4407