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

Ex 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']

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

Ex Input:
[5703, 'd', 2573, 'V', 9273, '7133', 'O', '6191', '6151', '5017', 'c', 'b', '1721', 'Z', 'J', 'C', 'O', 6077, 1125, 1345, 8989], ['f', 59, 8449, 5387, 8075, 9721, 5271, '7133', 'O', '6191', '6151', '5017', 'c', 'b', '1721', 2375, 3141, 'Z', 'Y', 'N']

Ex Output:
7133, O, 6191, 6151, 5017, c, b, 1721

Ex Input:
[9181, 'y', 'U', 4117, 'I', 2215, 'T', 1497, 'b', '689', '5065', '8401', 'D', '6949', '2197', 'r', '9933', '3513', 'U', 6357], [5939, 2135, 4351, 'a', 6299, 1417, 3609, 8181, '689', '5065', '8401', 'D', '6949', '2197', 'r', '9933', '3513', 'b', 2819, 8577, 'Z', 'R', 'G', 7917, 'W']

Ex Output:
689, 5065, 8401, D, 6949, 2197, r, 9933, 3513