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

Q: [641, 'S', 'X', 'z', 4889, 5577, 'f', 'K', 4151, 'I', 3883, 511, 'y', 7333, '125', '933', 'A', '4571', 'V', '9597', 'T', 'S', '5519', 'g', 'z', 'm', 'O', 't', 'T', '7241', 'n', 'x', '6943', 'q', 7115, 8237, 'G', 'F', 'j', 2437, 7631, 9983, 'Z'], ['j', 7931, 'e', 1833, 'O', 'T', 'L', 2669, 'V', 'e', 'r', 8177, 'A', 'k', 'K', 'l', 5879, '125', '933', 'A', '4571', 'V', '9597', 'T', 'S', '5519', 'g', 'z', 'm', 'O', 't', 'T', '7241', 'n', 'x', '6943', 'c', 'i', 'k', 9469, 4459, 'N', 'q']

A: 125, 933, A, 4571, V, 9597, T, S, 5519, g, z, m, O, t, T, 7241, n, x, 6943
****
Q: [8471, 8309, 'g', 'f', 5019, 'd', 8129, 'r', 'e', 'l', 'B', '7297', 'c', '2785', '919', 'B', '5459', 'L', 5985, 2953, 6897, 'n', 9209, 3281, 'w', 4011, 't'], ['g', 7529, 'q', 6213, 'c', 'l', 6053, 'r', 'e', 'l', 'B', '7297', 'c', '2785', '919', 'B', '5459', 'B', 2159, 7633, 8707]

A: r, e, l, B, 7297, c, 2785, 919, B, 5459
****
Q: [8131, 8393, 5661, 'r', '8729', '317', '1281', '8341', '9947', '2945', '867', 'C', 'D', 'N', '2175', '5973', 'A', 1295, 1977, 1363, 2765, 'H', 'f', 'J'], ['f', 6789, 'u', 'i', '8729', '317', '1281', '8341', '9947', '2945', '867', 'C', 'D', 'N', '2175', '5973', 'i', 9277, 6077, 3871, 'p']

A:
8729, 317, 1281, 8341, 9947, 2945, 867, C, D, N, 2175, 5973
****