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

Q: ['p', 'C', 6777, 'P', 'd', 4619, 'l', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'U', 'C', 'G', 'm'], ['U', 5295, 'O', 'F', '4333', '9491', 'V', '5745', 'P', '9255', '9439', '8461', 'D', 'L', 'w', 'R', 'W', 'C', 'I', 'K', 5891]

A: 4333, 9491, V, 5745, P, 9255, 9439, 8461, D, L, w, R
****
Q: ['K', 6723, 7053, 'g', 6793, 'h', 'C', 'H', 'J', 'K', '1061', '9585', 'F', 'l', '5651', 'f', 'P', '9147', '5227', '2861', '6421', 'V', '1009', '6639', '3701', 'T', 'o', 'j', 5777, 3173, 'N', 'Q', 'O', 'm', 4693], ['r', 5349, 503, 'Q', 8435, 'Y', 6633, 'W', 'J', 'K', '1061', '9585', 'F', 'l', '5651', 'f', 'P', '9147', '5227', '2861', '6421', 'V', '1009', '6639', '3701', 'Q', 'Z', 8433, 'h', 8205, 'm', 6605, 5051, 'w', 'o', 3177, 't', 9005, 'v', 'G']

A: J, K, 1061, 9585, F, l, 5651, f, P, 9147, 5227, 2861, 6421, V, 1009, 6639, 3701
****
Q: ['C', 'w', 3575, 't', 'w', 'x', '1645', 'H', 'J', 6731], ['O', 825, 'C', 'w', 'x', '1645', 'H', 'd', 'v', 'J']

A:
w, x, 1645, H
****