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

Q: [4839, 2307, '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'J', 'h', 'k', 'P'], [2615, 't', 5171, 'V', 'q', '5609', 'V', 's', '7059', 'N', '3761', 'i', '161', '1987', 'N', 'p', 5261, 3251]

A: 5609, V, s, 7059, N, 3761, i, 161, 1987, N
****
Q: ['p', 'Z', 'Z', 5929, 7441, 'g', 7897, 'p', 4341, 'F', 'c', 'i', '1227', 'p', '6197', 'M', '3549', 'G', '11', '7667', 'T', '7819', 'T', '8965', '4725', 'R', 'Q', '4873', '4701', 'F', 2669, 3809, 645, 6921, 'R', 9767, 'h', 'J', 7893, 'h'], [937, 'a', 'i', '1227', 'p', '6197', 'M', '3549', 'G', '11', '7667', 'T', '7819', 'T', '8965', '4725', 'R', 'Q', '4873', '4701', 'Z', 'q', 'u', 6333, 5793, 'a', 783, 'K', 'R']

A: i, 1227, p, 6197, M, 3549, G, 11, 7667, T, 7819, T, 8965, 4725, R, Q, 4873, 4701
****
Q: [4681, 'V', 'B', 'l', '5525', '7911', 'm', '5015', 'b', '6631', '8499', 'W', 'R', '1785', '6023', '1727', '7593', 'Y', 'a', 'M', 'D', 'C', 'c', '4641', 'p', 3799, 'l', 'T', 3539, 'U', 2305], [1449, 7835, 'Z', 7345, 'u', 'd', 'l', '5525', '7911', 'm', '5015', 'b', '6631', '8499', 'W', 'R', '1785', '6023', '1727', '7593', 'Y', 'a', 'M', 'D', 'C', 'c', '4641', 'X', 7375, 7633, 4129, 8019, 'r', 7627, 915, 3787, 4313, 9609, 4525, 'C', 'Q', 'F', 7411, 1789, 1943, 4127, 'E', 'z']

A:
l, 5525, 7911, m, 5015, b, 6631, 8499, W, R, 1785, 6023, 1727, 7593, Y, a, M, D, C, c, 4641
****