In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [785, 9807, 'X', 't', 2289, 'G', 6851, 'j', 6557, 2339, 1869, 'Y', 7935, 'z', 7909, 5047, 8759, 6587, 5921, 5755, 2719, 'Y', 'O', 8833, '7583', '661', 'c', 'v', 'H', '9797', 'K', 'e', '2507', 'e', '9125', '4089', '3297', '9677', 'd', '7891', '835', '8999', '7383', '6411', 'n', '6707', '6205', 'P', '8987', 'm', 1273, 5489, 3457, 2677, 'f', 3271, 'e', 2581, 8723, 'n', 9215, 8481, 'q', 1449, 4249], [9329, 'n', 3199, 6747, 2539, 8513, 'V', 8039, 87, 'M', 383, 'O', 'W', 'Z', 'D', 'c', 189, 'h', 485, 3109, 'e', 'j', 'z', 7243, '7583', '661', 'c', 'v', 'H', '9797', 'K', 'e', '2507', 'e', '9125', '4089', '3297', '9677', 'd', '7891', '835', '8999', '7383', '6411', 'n', '6707', '6205', 'P', '8987', 'W', 'I', 171, 691, 4151, 8833, 'o', 'V', 'L', 5105, 6239, 6943, 5963, 959]
A:
7583, 661, c, v, H, 9797, K, e, 2507, e, 9125, 4089, 3297, 9677, d, 7891, 835, 8999, 7383, 6411, n, 6707, 6205, P, 8987