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

Q: [987, 885, 2111, 'P', 'e', 'h', 'h', 'C', 'P', 'V', '4563', 'E', 'J', 'M', 'n', 'C', 'Q', 'P', 'k', 'S', 'M', '8993', '8675', '6707', 'Q', 'r', '4351', 'Q', 'q', 'a', 6295, 1061, 1619, 3509, 8583, 'f', 1157, 5365, 'l', 'x', 'B', 'U', 141, 5753, 'F', 7595, 'H'], [8245, 137, 5887, 1267, 5851, 'n', 7393, 'f', 9739, 9983, 'h', 'h', 'C', 'P', 'V', '4563', 'E', 'J', 'M', 'n', 'C', 'Q', 'P', 'k', 'S', 'M', '8993', '8675', '6707', 'Q', 'r', '4351', 'Q', 'q', 'F', 'k', 3463, 'U', 3587, 't', 'j', 'q', 'M', 1213, 9955, 'h', 9779, 'l', 8839, 'G', 8477, 9341, 6071, 'm']

A: h, h, C, P, V, 4563, E, J, M, n, C, Q, P, k, S, M, 8993, 8675, 6707, Q, r, 4351, Q, q
****
Q: [4817, 'A', '3155', 'W', 'm', 4061], [7701, 'P', '3155', 'W', 't', 'J']

A: 3155, W
****
Q: ['h', 8925, 'a', 'x', 8681, 's', 't', 5661, 'y', 6889, 't', 'F', 'B', 'R', '5601', 'A', 'z', 'Z', 'D', '7507', '8939', 'l', 'a', '5021', 'M', '1883', '1703', '3493', 'F', 2405, 'C', 5965, 'X'], [3807, 1607, 8211, 'm', 'C', 5231, 2405, 1435, 'v', 'F', 'U', 'u', 3377, '5601', 'A', 'z', 'Z', 'D', '7507', '8939', 'l', 'a', '5021', 'M', '1883', '1703', '3493', 'J', 7139, 9855]

A:
5601, A, z, Z, D, 7507, 8939, l, a, 5021, M, 1883, 1703, 3493
****