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

Q: ['Y', 'Z', 'm', 'S', '3631', 'v', 'x', 5851, 615, 'm'], ['D', 'D', 'm', 'S', '3631', 'v', 'O', 'D']

A: m, S, 3631, v
****
Q: [1291, 3229, 'C', 'P', 5501, 'M', 7039, '5337', 'L', '5089', 'q', '9619', '2651', '2899', '1103', '7949', 'T', '199', 'N', '4359', 'g', '597', '2195', 'F', '8427', '7741', '3033', '4565', '4957', 'Y', '37', '9017', 'k', '2555', 'z', '4683', 'q', 'p', 2557, 797, 'z', 'p', 'z', 'K'], ['a', 6929, 'h', 'r', 'Q', 'v', 'L', 4801, 'J', 1849, 4197, 5077, '5337', 'L', '5089', 'q', '9619', '2651', '2899', '1103', '7949', 'T', '199', 'N', '4359', 'g', '597', '2195', 'F', '8427', '7741', '3033', '4565', '4957', 'Y', '37', '9017', 'k', '2555', 'z', '4683', 'q', 'N', 773, 'g', 2295, 7477, 'R', 'I', 6823, 9695, 'v', 543, 'R', 7201, 9203, 1731, 'v', 4213, 767, 4273, 6557, 4155, 5339, 9859, 'w', 'D']

A: 5337, L, 5089, q, 9619, 2651, 2899, 1103, 7949, T, 199, N, 4359, g, 597, 2195, F, 8427, 7741, 3033, 4565, 4957, Y, 37, 9017, k, 2555, z, 4683, q
****
Q: ['K', 'r', 'O', 'W', 'o', 911, 4159, 'E', 'E', 'h', 'F', 'C', 'G', 2237, 605, 'Q', 8499, 'y', 3945, 'l', 8899, 'M', 6883, 'k', '8743', '7235', '4385', 'h', 'L', '2963', '3855', 'v', 'C', 'W', '6793', 'W', 'q', '5257', '2353', 'v', '2031', '2725', '3879', 'H', '4975', '1285', 'W', 'Y', '3237', 'r', 2381, 'S', 'P', 2497], ['p', 7259, 'B', 5401, 'k', '8743', '7235', '4385', 'h', 'L', '2963', '3855', 'v', 'C', 'W', '6793', 'W', 'q', '5257', '2353', 'v', '2031', '2725', '3879', 'H', '4975', '1285', 'W', 'Y', '3237', 'G', 4113, 'Z', 845, 1763, 3197]

A:
k, 8743, 7235, 4385, h, L, 2963, 3855, v, C, W, 6793, W, q, 5257, 2353, v, 2031, 2725, 3879, H, 4975, 1285, W, Y, 3237
****