Detailed Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Q: [287, 'j', 'J', 'T', 535, 2303, 2397, 'd', 's', 'n', 'q', '5055', 'x', 'i', '9677', 'g', 'i', '8829', '4695', 'Q', 't', '2871', 'u', 'T', 'e', 'C', '1087', '945', 's', 'Q', 'H', 'L', 2137, 3025, 'B', 'A'], ['s', 585, 5657, 4549, 'h', 'T', 1345, 3375, 455, 'c', 325, 5071, 6077, 's', 'n', 'q', '5055', 'x', 'i', '9677', 'g', 'i', '8829', '4695', 'Q', 't', '2871', 'u', 'T', 'e', 'C', '1087', '945', 'A', 5635, 'U', 'x', 'o', 'i', 8921, 7703, 'b', 6267, 9883, 'N', 'd', 3081, 8339, 487, 4563, 'v', 'K']
A:
s, n, q, 5055, x, i, 9677, g, i, 8829, 4695, Q, t, 2871, u, T, e, C, 1087, 945