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

Q: [6017, 2811, '8157', '9625', 'P', 3629], [7857, 1357, '8157', '9625', 'z', 'z']

A: 8157, 9625
****
Q: [8431, 'L', 809, 'V', 3993, '5725', 'g', '1797', '8531', 'i', '1975', 'Y', 'U', '2979', 'E', '9345', 'T', 'O', 'o'], [9535, 4859, 4223, 9541, 8281, 'L', 'M', 'W', 'Q', '5725', 'g', '1797', '8531', 'i', '1975', 'Y', 'U', '2979', 'E', '9345', 'M', 7209, 7775, 'I', 'n', 'l', 7173, 'E', 'L', 'h']

A: 5725, g, 1797, 8531, i, 1975, Y, U, 2979, E, 9345
****
Q: [2757, 6537, 2347, 1165, 'y', 'R', 249, 't', 6343, 'J', 'r', 'j', '4393', 'j', '6733', 'a', 'l', '6043', 'z', '3125', '2685', 'N', 'o', '2587', 'h', 'C', '509', 'e', 'h', 9783, 'R', 'g', 'P', 'b', 'h', 'd', 'f', 3517, 'o', 'R', 'B', 2721, 2689], ['O', 2825, 1215, 'h', 'y', 4459, 'K', 345, 'L', 's', 'R', 'Y', 'U', 'Z', 'f', 1515, 'r', 'j', '4393', 'j', '6733', 'a', 'l', '6043', 'z', '3125', '2685', 'N', 'o', '2587', 'h', 'C', '509', 'E', 'b', 1259, 'E', 9951, 3429, 'Q', 9021, 'S', 'n', 'Y', 1377]

A:
r, j, 4393, j, 6733, a, l, 6043, z, 3125, 2685, N, o, 2587, h, C, 509
****