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

Q: [127, 'J', 'v', 6999, 'g', 'G', 1965, 'E', 8699, 7579, 9265, 6993, 'B', 'R', 'I', '8517', 'V', 'W', '7777', 'K', '4475', '2323', 'z', '7003', 'h', 'q', 'T', '6623', 'L', 851, 9385, 8367, 'J'], [1577, 'y', 121, 6195, 'B', 'R', 'I', '8517', 'V', 'W', '7777', 'K', '4475', '2323', 'z', '7003', 'h', 'q', 'T', '6623', 'T', 'M', 'l', 'D', 'z', 9687, 1645, 'W', 1249, 5527, 297]

A: B, R, I, 8517, V, W, 7777, K, 4475, 2323, z, 7003, h, q, T, 6623
****
Q: [1231, 'a', 9367, '155', 'r', '1473', '5679', '3161', 'L', 'e', 'b', 'm', '9427', '2001', '5293', '3487', 'K', '6467', 'S', 'e', 6603, 'm', 8145, 'L', 's', 1273, 9291, 'X'], [5773, 'D', 'W', 'F', 5987, 'D', 'H', 2095, 'I', 'X', 29, '155', 'r', '1473', '5679', '3161', 'L', 'e', 'b', 'm', '9427', '2001', '5293', '3487', 'K', '6467', 'S', 'C', 'a']

A: 155, r, 1473, 5679, 3161, L, e, b, m, 9427, 2001, 5293, 3487, K, 6467, S
****
Q: [3949, 5603, 'O', 2441, 'x', 8605, 815, 5489, 295, 6763, 'a', 'k', 2347, 'I', '8551', '2495', 'a', 'y', 'z', 'w', '5097', 'h', 'I', '5031', 'F', '8305', '9227', '3699', 'D', '9209', 'y', '2763', 'c', 'W', 'D', 773, 5495, 'T', 'C', 4981, 'Y', 'X'], [9525, 'O', 7105, 'I', 1605, 2379, 'b', 'z', '8551', '2495', 'a', 'y', 'z', 'w', '5097', 'h', 'I', '5031', 'F', '8305', '9227', '3699', 'D', '9209', 'y', '2763', 'c', 'Y', 'R', 'A']

A:
8551, 2495, a, y, z, w, 5097, h, I, 5031, F, 8305, 9227, 3699, D, 9209, y, 2763, c
****