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

Q: ['Y', 'z', 5335, 'X', 3843, 'D', 4457, 2327, 'V', 7231, 'y', 4551, 'W', 9241, '7147', '6713', '9717', '8795', '3161', 'V', '1129', '2943', '9809', 'a', '3273', 'y', 'R', 'M', 'g', 'E', 'D', 'd', 'x', 5331, 7187, 'J', 3839, 't'], [1485, 'f', 8207, 5859, 'D', 'k', 't', 'r', 'z', 613, 9091, 4893, 5755, '7147', '6713', '9717', '8795', '3161', 'V', '1129', '2943', '9809', 'a', '3273', 'y', 'R', 'M', 'Q', 5331, 'c', 3531, 6477, 'a']

A: 7147, 6713, 9717, 8795, 3161, V, 1129, 2943, 9809, a, 3273, y, R, M
****
Q: [7231, 2153, '3257', '3693', 'P', 3291], [1543, 6411, '3257', '3693', 'G', 'k']

A: 3257, 3693
****
Q: [8277, 'r', 6401, 5513, 'g', 'E', 'Q', 5503, 'u', 'O', 2755, 'L', 621, 5637, 1225, 8525, 'M', 'b', 'g', 'D', 'V', 'v', 'l', '5433', 'I', 'g', 'r', '1687', '5737', 'x', 'I', 'f', 't', 'p', '5727', '7527', 'b', '7007', '4799', '3841', 'P', 'y', '6583', 'c', '4839', 'a', 'Q', '1057', '9093', '8887', 'n', '3791', 't', 'r', 'Z', 4909, 'a', 'O'], [8891, 'l', 5135, 'r', 6657, 8423, 'P', 8329, 'j', 933, 853, 'h', 'y', 'q', 'y', 'C', 'w', 'r', 7705, 'm', 'Z', 5479, 5897, 'p', 'V', 'I', 'S', 'b', 9245, 'l', '5433', 'I', 'g', 'r', '1687', '5737', 'x', 'I', 'f', 't', 'p', '5727', '7527', 'b', '7007', '4799', '3841', 'P', 'y', '6583', 'c', '4839', 'a', 'Q', '1057', '9093', '8887', 'n', '3791', 'r', 8793, 1271, 3815, 'g', 4763, 't', 't', 5719, 'W', 1353]

A:
l, 5433, I, g, r, 1687, 5737, x, I, f, t, p, 5727, 7527, b, 7007, 4799, 3841, P, y, 6583, c, 4839, a, Q, 1057, 9093, 8887, n, 3791
****