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

Q: [2787, 'N', 'I', 'M', 'x', '3825', 'r', '1041', 'y', 'a', 'v', 6057], ['F', 6523, 'x', '3825', 'r', '1041', 's', 'C', 3001, 8425]

A: x, 3825, r, 1041
****
Q: ['z', 'j', 'G', 'w', 'h', 5009, 'z', 'r', '1279', 'z', '1337', 'R', 'R', 9761, 'D', 713], ['a', 'T', 'A', 'z', 'r', '1279', 'z', '1337', 'R', 'J', 'z', 'L', 'P']

A: z, r, 1279, z, 1337, R
****
Q: [8545, 3753, 's', 6379, 'O', '729', '7837', 'x', 'H', '3057', 'F', 'n', 'I', 'x', 'G', 'r', 4377, 9617], ['A', 'p', 6779, 5737, 'V', 'i', 5375, 'O', '729', '7837', 'x', 'H', '3057', 'F', 'n', 'I', 'x', 'G', 'U', 'h', 'p', 8387, 5823, 263, 1459, 825]

A:
O, 729, 7837, x, H, 3057, F, n, I, x, G
****