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: ['t', 'W', 'i', 't', 4163, 'd', 'k', 'Y', 'V', '5149', '6959', '6843', '7821', '6533', 'g', '6879', 'T', 6267, 5627, 'u', 'g', 'F', 3861], ['f', 'g', 'N', 'I', 'C', 4633, 'Y', 'V', '5149', '6959', '6843', '7821', '6533', 'g', '6879', 'A', 'K', 1819, 3343, 8603, 'h', 1751, 'h']

A: Y, V, 5149, 6959, 6843, 7821, 6533, g, 6879
****
Q: ['e', 'p', 'a', 'y', 'f', '8023', 't', '9363', 'e', '4997', '8657', 'A', '9541', '851', 'q', 'T', 'B', 8919, 'H'], [7021, 'x', 6101, 't', 8679, 5987, 'X', 'L', '8023', 't', '9363', 'e', '4997', '8657', 'A', '9541', '851', 'q', 'T', 'G', 9503, 3377, 'T', 7897, 'o', 6685, 7561, 899, 'E', 'q']

A:
8023, t, 9363, e, 4997, 8657, A, 9541, 851, q, T
****