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

Input: Consider 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]

Output: i, A, 843, E, Q, M, 3185, h, u, K, D, 5655, 2057, 1169


Input: Consider Input: [6233, 489, 6117, '5201', 'J', 'A', '3023', 'W', '791', '8263', 'm', 'w', 'q', '8873', 'B', '4945', '25', 'v', '6679', '3217', 'Q', '9509', 'V', 'Q', 4171], ['G', 9467, 331, 9967, '5201', 'J', 'A', '3023', 'W', '791', '8263', 'm', 'w', 'q', '8873', 'B', '4945', '25', 'v', '6679', '3217', 'Q', '9509', 'V', 'o', 'a', 'P', 'a', 'C', 'N', 'R', 'l', 'l', 'j', 'N', 8161, 3729, 'F', 'r', 'B']

Output: 5201, J, A, 3023, W, 791, 8263, m, w, q, 8873, B, 4945, 25, v, 6679, 3217, Q, 9509, V


Input: Consider Input: ['Y', 'B', 'e', 'E', 'x', 7089, 'h', 'j', 'P', '9283', '3079', '5905', 'Y', '8529', '3253', 'R', 'a', '3789', '6911', '2709', '8331', '6773', 'R', 'M', 7261, 4683, 4259], [8081, 'i', 489, 'X', 'P', 4423, 8599, 'n', 'V', 'O', 'D', 'j', 'P', '9283', '3079', '5905', 'Y', '8529', '3253', 'R', 'a', '3789', '6911', '2709', '8331', '6773', 'l', 'n', 6619, 9053, 'Q', 9267, 'S', 'b', 'K']


Output: j, P, 9283, 3079, 5905, Y, 8529, 3253, R, a, 3789, 6911, 2709, 8331, 6773