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

Q: [8711, 'f', 8715, 7649, 4967, '5867', 'i', '6567', 'R', '6087', '2945', 'J', 'j', 9099, 6331], ['a', 'T', 'n', 4869, '5867', 'i', '6567', 'R', '6087', '2945', 'M', 3125, 'D', 3835]

A: 5867, i, 6567, R, 6087, 2945
****
Q: ['L', 5499, 'z', 'J', 'I', 't', 6291], [337, 5087, 'z', 'J', 'I', 'p', 'm']

A: z, J, I
****
Q: ['L', 2383, 'e', 1, 7391, 5311, 'n', 9109, 'z', 2323, 'E', 6667, 5587, 'n', 'B', 7893, 'w', 'd', 8947, 'R', 9639, 'Y', 8173, 'z', 2665, 'w', '9583', 'u', '3713', '1717', 'D', 'k', 'f', '3301', 'i', 'I', 'l', '3513', '6675', '6591', '3809', '4919', 'Y', 'i', 'Z', '3967', '971', 'C', 'G', '125', 'D', 'w', 'h', 'k', 6287, 'c', 525, 'D', 'P', 'P', 3035, 'V', 'x', 'Q', 'C', 9059, 'W', 'J', 2947, 9899, 6829, 8519, 9287, 1551, 'U'], [2165, 189, 'R', 3247, 's', 'w', '9583', 'u', '3713', '1717', 'D', 'k', 'f', '3301', 'i', 'I', 'l', '3513', '6675', '6591', '3809', '4919', 'Y', 'i', 'Z', '3967', '971', 'C', 'G', '125', 'p', 'D', 'j', 'K', 'k', 1089, 'b', 's', 'C', 2767, 1489, 'L', 'c', 'C', 7641, 3781]

A:
w, 9583, u, 3713, 1717, D, k, f, 3301, i, I, l, 3513, 6675, 6591, 3809, 4919, Y, i, Z, 3967, 971, C, G, 125
****