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

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: ['A', 'Y', 'B', 5539, 'i', 'u', 3953, 7153, '3019', '4737', 'Q', 'Z', '223', '7501', '1205', 'u', 'F', 'i', 4673, 5277, 2169, 'v'], [7917, 'p', 'K', 'D', 'S', 'U', 'w', '3019', '4737', 'Q', 'Z', '223', '7501', '1205', 'u', 'd', 8111, 'Q', 'b', 7059, 'L', 'u', 5107]

A: 3019, 4737, Q, Z, 223, 7501, 1205, u
****
Q: [3885, 'B', 'z', 'q', 'K', 9379, 'J', 'g', 'Y', 'K', 'D', 'l', '487', 'O', '3971', 't', 'B', 'g', 't', '3091', '393', '4507', '121', '225', '3567', 'm', 'j', 'T', '9665', 'h', '9965', 'y', '3837', 'c', '3449', 'q', '443', 'd', 'd', 'd', 'q', 'g', 'R', 'T', 2427, 5457, 'f', 'N', 'm'], [2921, 'c', 4363, 8919, 'i', 8977, 7723, 2697, 1905, 3161, 'D', 'y', 'n', 'y', 'U', 'K', 'D', 'l', '487', 'O', '3971', 't', 'B', 'g', 't', '3091', '393', '4507', '121', '225', '3567', 'm', 'j', 'T', '9665', 'h', '9965', 'y', '3837', 'c', '3449', 'q', '443', 'I', 'A', 'm', 'b', 'c', 'Z', 7691, 4275, 6867, 9819, 'g', 'P', 'X']

A:
K, D, l, 487, O, 3971, t, B, g, t, 3091, 393, 4507, 121, 225, 3567, m, j, T, 9665, h, 9965, y, 3837, c, 3449, q, 443
****