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

Input: Consider Input: ['M', 'w', 9985, 4793, 'R', '6127', '5051', 'e', '6973', '5935', 'e', '8843', '8801', 'q', '4307', 'R', '2797', 'e', '3417', 'Q', 'X', 'b', 9903, 3977, 967, 'i', 'a', 2753, 'L'], [6925, 'w', 1371, 'w', 8257, 't', 6667, 'I', 4609, 5231, 'L', 'R', '6127', '5051', 'e', '6973', '5935', 'e', '8843', '8801', 'q', '4307', 'R', '2797', 'e', '3417', 'Q', 'X', 'U', 'x', 'w', 'H', 'n', 3339, 3271, 1439, 'A', 6725, 3041, 'R']

Output: R, 6127, 5051, e, 6973, 5935, e, 8843, 8801, q, 4307, R, 2797, e, 3417, Q, X

Input: Consider Input: ['W', 'A', '5747', 'i', 'M', 'N', 8861], [1997, 'D', 5205, '5747', 'i', 'M', 'D', 3319, 1895]

Output: 5747, i, M

Input: Consider Input: ['w', 'J', 'Y', 'I', 'O', '6939', 'Z', '397', '3457', 'b', '4437', 'D', '4121', '2657', 'N', '8643', 'h', '5637', '5919', '5325', '3243', 'K', 'D', 'J', 'E', '3849', 'c', '5233', '2851', '4537', '3241', 'Y', 4503, 'C', 'p', 'N', 5851, 9149], [4591, 'q', 8791, 'g', 'd', 'Z', 6303, 'G', 'B', 'n', 'J', 1833, 'y', 'Y', 'v', 'k', 5461, 'C', 'S', 7633, 4295, 'G', 'O', '6939', 'Z', '397', '3457', 'b', '4437', 'D', '4121', '2657', 'N', '8643', 'h', '5637', '5919', '5325', '3243', 'K', 'D', 'J', 'E', '3849', 'c', '5233', '2851', '4537', '3241', 'q', 'Q', 1035, 6065, 'D', 'U', 8895]
Output: O, 6939, Z, 397, 3457, b, 4437, D, 4121, 2657, N, 8643, h, 5637, 5919, 5325, 3243, K, D, J, E, 3849, c, 5233, 2851, 4537, 3241