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

Q: [5701, 'Y', 2511, 4707, 'i', 9083, 1187, '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'X', 8863, 7467, 665, 3485, 4035, 'g', 8795], [189, 8331, 'N', 'S', 'U', '749', 'v', 'i', 'f', 'j', '5983', '4221', 'p', 'q', '8703', 'n', 'Z', 'O', 'A', 'H', 'R', 't', 9581, 5575, 'Q', 'Q', 1209]

A: 749, v, i, f, j, 5983, 4221, p, q, 8703, n, Z, O, A, H
****
Q: ['d', 6171, 9855, 'D', 'e', '299', 'y', 'U', 'n', 'x', 'f', 2817, 7263, 2945, 'h'], [5759, 2135, '299', 'y', 'U', 'n', 'x', 'g', 2571, 'd']

A: 299, y, U, n, x
****
Q: ['M', 5791, 'V', 's', '8915', 'y', 'n'], ['m', 203, 'V', 's', '8915', 'L', 5985]

A:
V, s, 8915
****