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: ['p', 'j', 'p', 3253, 'L', 'X', 1755, 4489, 'n', 'V', 7833, 9835, 9139, 't', 3153, 5695, 7775, '6669', 'e', 'm', '5223', '8817', 's', '9893', '9405', 'b', 'c', 'Q', 'd', '7239', 'H', '55', 'f', 'P', 'l', 'O', '65', '2513', '2417', '8039', '7095', 'm', 'n', '3597', 'O', '6129', 'Y', 6177, 'q', 155, 'O', 3591, 'z', 'M', 'Q', 'v', 'e', 4571, 8539], ['K', 'D', 3165, '6669', 'e', 'm', '5223', '8817', 's', '9893', '9405', 'b', 'c', 'Q', 'd', '7239', 'H', '55', 'f', 'P', 'l', 'O', '65', '2513', '2417', '8039', '7095', 'm', 'n', '3597', 'O', '6129', 'N', 'W', 'g', 2189, 'q', 'm', 'x', 3317, 'S', 'K', 'u', 3559, 3153, 'u', 3061]

A: 6669, e, m, 5223, 8817, s, 9893, 9405, b, c, Q, d, 7239, H, 55, f, P, l, O, 65, 2513, 2417, 8039, 7095, m, n, 3597, O, 6129
****
Q: [5961, 9401, 'h', 'o', 'b', 3365, 3819, 'E', 'h', '3169', 'q', '10023', 'F', 'k', 'U', '6825', '5201', 'z', 2457, 7151, 'c', 5605, 6127, 'r', 'V', 'Q'], ['R', 'D', 4431, 'W', 6829, 'c', 8025, 7023, 'E', 'h', '3169', 'q', '10023', 'F', 'k', 'U', '6825', '5201', 'p', 379, 'V', 5079, 2153, 2075, 'E', 'O']

A:
E, h, 3169, q, 10023, F, k, U, 6825, 5201
****