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

Q: ['i', 4077, 'Z', 6231, 2337, 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'd', 1355, 'n'], [505, 'A', 8789, 75, 'q', 'h', '1181', '1631', '2605', '587', '1477', '2707', 'R', 'O', 'e', 'r', 'I', 'm', 1525, 3577]

A: h, 1181, 1631, 2605, 587, 1477, 2707, R, O
****
Q: [319, 1325, 9567, 'M', 'm', 1759, 't', 'Z', 'X', 7981, 2409, 5023, 'b', '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'I', 5289, 1221, 'k', 5727, 5411, 7127, 'F', 'J', 'o', 7587, 'm', 237, 415, 8413, 'j'], ['O', 5043, '8661', '6609', '8213', 'Y', '9541', '8065', 'M', '8267', 'V', 'K', '3217', '1111', '1411', 'u', '9705', 'V', 'U', '3171', '4195', 'Z', 't', 'p', 'v', 5793]

A: 8661, 6609, 8213, Y, 9541, 8065, M, 8267, V, K, 3217, 1111, 1411, u, 9705, V, U, 3171, 4195, Z, t, p
****
Q: [2473, 'i', 'L', 'M', 9667, '7433', 'N', '7259', '7825', 'e', '7489', '5871', '6599', 'J', 'z', 'c', 'l', 683, 9217], [6801, 'b', 6977, 'q', 4459, 'W', 'a', 2487, '7433', 'N', '7259', '7825', 'e', '7489', '5871', '6599', 'J', 'z', 'e', 'h', 1331, 4321]

A:
7433, N, 7259, 7825, e, 7489, 5871, 6599, J, z
****