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

Q: [8271, 'H', 'n', 1303, 'P', 'Z', '8927', 'S', 'Z', 'e', '3463', '5487', 'w', 'H', '1071', 'q', '7193', '2751', '1963', 'I', 'H', 'F', '6399', '1589', '1063', 'T', '9211', 'w', '9069', '5757', '2431', 'G', 'z', 'H', 'Z', 'R', 'Z', 17], [6877, 4677, 'A', 623, 'g', 151, 'u', 5045, 1867, 'E', 'M', 1153, 237, 4623, 4963, 'B', 'M', 8311, 6637, 'P', 'Z', '8927', 'S', 'Z', 'e', '3463', '5487', 'w', 'H', '1071', 'q', '7193', '2751', '1963', 'I', 'H', 'F', '6399', '1589', '1063', 'T', '9211', 'w', '9069', '5757', '2431', 'G', 'd', 4251, 'F', 'O', 'J', 4171, 7565, 'F', 9551, 4139]

A: P, Z, 8927, S, Z, e, 3463, 5487, w, H, 1071, q, 7193, 2751, 1963, I, H, F, 6399, 1589, 1063, T, 9211, w, 9069, 5757, 2431, G
****
Q: ['J', 8283, 'c', 1349, 'Z', 5795, 3153, 'w', 3769, 'M', '5425', 'g', '749', '2655', 'L', '5235', '7797', 'q', '8589', 'V', '4057', 'Q', 'y', 'P', 'W', '1223', 'V', '6029', 'P', 'x', 'v', '7111', 'x', '511', 's', 'N', 8363, 4645, 8599, 'B', 5111, 'k', 3627, 3245, 'e', 'h', 'X', 'U', 437, 4871, 3567, 8775, 7393, 2135, 4321, 1223], ['y', 'e', 4857, 'U', 4951, 6477, 6435, '5425', 'g', '749', '2655', 'L', '5235', '7797', 'q', '8589', 'V', '4057', 'Q', 'y', 'P', 'W', '1223', 'V', '6029', 'P', 'x', 'v', '7111', 'x', '511', 'c', 8651, 2433, 219, 'E', 9299, 'R', 'C', 'B', 'n', 'I', 8513, 4973, 3979, 'R', 'g', 'C', 'f', 8713, 3227, 4085, 1055, 'Z']

A: 5425, g, 749, 2655, L, 5235, 7797, q, 8589, V, 4057, Q, y, P, W, 1223, V, 6029, P, x, v, 7111, x, 511
****
Q: [901, 2273, 8917, 7393, 'P', 'A', '5797', 'Y', 'd', '1031', 'W', 'W', 'M', 'd'], ['K', 'm', 3169, 8463, '5797', 'Y', 'd', '1031', 'W', 'W', 'a', 'j', 6983, 6213]

A:
5797, Y, d, 1031, W, W
****