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: ['B', 'f', 'Y', 'r', 4391, 'B', '6995', '7077', 'p', '3191', 'M', 1379, 5473], [3689, 'g', 5189, 'w', 4837, 'B', '6995', '7077', 'p', '3191', 'B', 9145]

A: B, 6995, 7077, p, 3191
****
Q: [3595, 9017, 2051, 'q', 6349, 8517, 3043, 'q', 4041, 6041, 'R', 'G', 3291, 'b', 5717, '6517', '9161', 'e', '7931', 'a', '297', '2615', 'X', 'a', '145', '3985', '9675', 'e', '219', 'H', 'C', 'M', 'a', 5401, 5589, 'b', 'w', 'n', 8159, 5329, 3631, 725, 6513], ['v', 537, 7805, 1631, 8993, 'J', 9979, 'b', 'h', 'a', 6297, 'P', '6517', '9161', 'e', '7931', 'a', '297', '2615', 'X', 'a', '145', '3985', '9675', 'e', '219', 'H', 2263, 6383, 6591, 'B', 4145]

A:
6517, 9161, e, 7931, a, 297, 2615, X, a, 145, 3985, 9675, e, 219, H
****