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

Q: [4837, 'e', 'd', 3717, 3245, 'j', 'A', '5181', 'i', 'X', 'h', 'J', 'h', 'S', 801, 5829, 3309], ['K', 'j', 'L', 'N', 4449, 5349, 'A', '5181', 'i', 'X', 'h', 'J', 'c', 7035, 533, 5903, 'n', 'e']

A: A, 5181, i, X, h, J
****
Q: [7395, 6997, 'Z', 2015, 'v', '4045', 'F', 'O', 'N', 'k', '6013', 'C', 8179, 4675, 'x', 'k', 'V'], ['P', 'A', 'v', '4045', 'F', 'O', 'N', 'k', '6013', 'k', 7667, 3913, 5111, 1215, 'r', 'g']

A: v, 4045, F, O, N, k, 6013
****
Q: [8325, 'J', '1099', 'p', 's', '4837', '9163', '7431', '9555', 'O', 'x', 4625, 2525], ['d', 'C', '1099', 'p', 's', '4837', '9163', '7431', '9555', 't', 'O', 8579, 'K', 6715]

A:
1099, p, s, 4837, 9163, 7431, 9555
****