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

Q: ['K', 1657, '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'X', 'n', 3631, 'o', 'm'], ['P', 6249, 7565, 's', 1041, 'V', 'D', '5001', '8571', '2343', '9471', 'P', '6369', '9299', 'n', 'U', 'z', 2559, 5379, 6985, 6059]

A: 5001, 8571, 2343, 9471, P, 6369, 9299
****
Q: [273, 'i', 4051, 9063, 'D', 'E', 5087, 'M', '9959', '6273', 'p', 'L', 'B', 'H', '7889', '9933', 'p', '519', '339', 'h', 'u', 5559, 1733, 9555], ['i', 5977, 'r', 'b', 589, '9959', '6273', 'p', 'L', 'B', 'H', '7889', '9933', 'p', '519', '339', 'n', 'y', 'q']

A: 9959, 6273, p, L, B, H, 7889, 9933, p, 519, 339
****
Q: ['a', 7001, 'C', 'i', 'h', 2637, 'Q', 4545, 6175, 109, 'E', 5955, 'c', 'k', 2611, 421, 'g', 'e', 'K', '3459', 'a', '8463', 'S', '2989', 'd', '9265', '7965', '5241', '6213', '9465', 'V', 'J', 'T', 'f', 'M', '6949', 'g', '9151', 'q', 'S', '7843', 'R', '8339', 'f', 't', 1841, 4023, 7529, 3227, 'I', 595, 5433, 1035, 4273], ['k', 'z', 'd', 'b', 'g', 'e', 'K', '3459', 'a', '8463', 'S', '2989', 'd', '9265', '7965', '5241', '6213', '9465', 'V', 'J', 'T', 'f', 'M', '6949', 'g', '9151', 'q', 'S', '7843', 'R', '8339', 'f', 'B', 'q', 'F', 6341, 'r', 'u', 'H', 's', 3873, 4181, 'n', 4563, 243, 5307, 2873, 5697, 2923, 'y', 'w', 5675, 'p', 6177, 'C', 'J', 6295, 4765, 981, 909]

A:
g, e, K, 3459, a, 8463, S, 2989, d, 9265, 7965, 5241, 6213, 9465, V, J, T, f, M, 6949, g, 9151, q, S, 7843, R, 8339, f
****