Q: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 5633, 9135, 'q', 799, 6685, 'a', 'U', 351, '1593', 'n', 'F', '257', '5089', 'n', 'H', '2303', 'k', 'S', '7075', '2623', '8817', '4903', 'B', 'L', 10011, 'b', 'p', 771, 'I'], ['m', 9035, 2107, 8755, 3059, 'U', 'b', 1669, 4551, 'z', 443, 'R', 3093, 1037, '1593', 'n', 'F', '257', '5089', 'n', 'H', '2303', 'k', 'S', '7075', '2623', '8817', '4903', 'N', 5947]
A:
1593, n, F, 257, 5089, n, H, 2303, k, S, 7075, 2623, 8817, 4903