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

Q: [4249, 1307, 'R', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'H', 'K', 7197, 3907, 'I', 5561], [8961, 1477, 'X', 'C', 7153, 1005, 'C', '3377', '9383', 'w', '7897', 'S', '1791', 'f', '6787', 'L', 7313, 2449, 4181, 1573]

A: 3377, 9383, w, 7897, S, 1791, f, 6787
****
Q: [319, 1325, 9567, 'M', 'm', 1759, 't', 'Z', 'X', 7981, 2409, 5023, 'b', '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'I', 5289, 1221, 'k', 5727, 5411, 7127, 'F', 'J', 'o', 7587, 'm', 237, 415, 8413, 'j'], ['O', 5043, '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'v', 5793]

A: 8661, 6609, 8213, Y, 9541, 8065, M, 8267, V, K, 3217, 1111, 1411, u, 9705, V, U, 3171, 4195, Z, t, p
****
Q: [6557, 'J', 5163, 1025, 2063, 'w', 4933, 'L', 8333, 'H', 1337, 'Z', 'L', 'S', 4079, 6377, 'F', '31', 'I', '4673', 'p', 'b', '5623', '7167', '2493', '6461', 'W', 'v', 'R', '7227', 'k', '5489', '3153', '5559', 'i', 'A', 'r', 3913, 'V', 7271, 'v', 7503, 7173, 'C', 'I', 'A', 769, 7709, 1841, 4019, 1255], [9553, 4779, 4623, 'm', 'C', 'i', 'f', 'W', 1481, 'R', 'G', 8873, 3679, '31', 'I', '4673', 'p', 'b', '5623', '7167', '2493', '6461', 'W', 'v', 'R', '7227', 'k', '5489', '3153', '5559', 'i', 'A', 'X', 't']

A:
31, I, 4673, p, b, 5623, 7167, 2493, 6461, W, v, R, 7227, k, 5489, 3153, 5559, i, A
****