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

Q: ['d', 2317, 'y', 8487, 'r', 4789, 5525, '3961', '1747', 'v', '7423', '847', 'a', '4969', 'T', 'L', '5383', 'W', 'U', 5749, 9533, 'T', 'Z', 'x'], [1401, 'F', 9303, 'w', 4629, 9053, 'k', 7351, 1261, '3961', '1747', 'v', '7423', '847', 'a', '4969', 'T', 'L', '5383', 'o', 'q']

A: 3961, 1747, v, 7423, 847, a, 4969, T, L, 5383
****
Q: [4275, 8037, 5099, 'T', 2089, 'E', 5305, 'r', 'k', 9537, '57', 'v', '6257', '5991', '6455', 'a', '9565', '885', 'F', '2219', '2797', '9309', 'J', 'O', 2707, 8633, 8875, 9045, 'q'], [3221, 'f', 3167, '57', 'v', '6257', '5991', '6455', 'a', '9565', '885', 'F', '2219', '2797', '9309', 'J', 'C', 3665, 'm', 6901, 3441, 5601, 6983, 'i', 'z']

A: 57, v, 6257, 5991, 6455, a, 9565, 885, F, 2219, 2797, 9309, J
****
Q: [8593, 'F', 1303, 'I', 9549, '6475', 'Q', 'h', '6521', 'I', 'W', 'q', '7351', 'J', 'Q', 'E', 'G', 7851], ['A', 'k', 3891, 'P', 9057, 'y', 2475, '6475', 'Q', 'h', '6521', 'I', 'W', 'q', '7351', 'F', 'v', 'j', 'K']

A:
6475, Q, h, 6521, I, W, q, 7351
****