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

Q: ['S', 'd', 'z', 2305, '2731', 'W', '5987', '4043', 'w', 'v', 'S', 'v', '1143', '1725', '9073', '4411', '9321', '1213', '3111', '2527', 'U', 'U', 'y', 'N', 'n', 6769], ['Q', 'T', 'n', 1267, 5099, 57, 4739, 295, 8099, 'n', '2731', 'W', '5987', '4043', 'w', 'v', 'S', 'v', '1143', '1725', '9073', '4411', '9321', '1213', '3111', '2527', 'U', 'K', 'n', 'N', 'b', 3941, 3443, 'A', 7927, 'g', 'h']

A: 2731, W, 5987, 4043, w, v, S, v, 1143, 1725, 9073, 4411, 9321, 1213, 3111, 2527, U
****
Q: [787, 577, 1283, 10019, '3229', 'C', 'b', '8319', 'j', 7553, 8091], [4091, 1749, 'L', 'A', '3229', 'C', 'b', '8319', 'U', 9603]

A: 3229, C, b, 8319
****
Q: [3139, 'A', 9221, 4931, '4627', '3185', '2939', 'u', '5975', '4583', 'K', 'C', 8955, 1919], ['P', 'e', 439, 6719, 'S', '4627', '3185', '2939', 'u', '5975', '4583', 'Y', 2377, 'H']

A:
4627, 3185, 2939, u, 5975, 4583
****