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

Example input: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Example output: 8297, b
Example explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].
Q: ['l', 'k', 3783, 'o', 477, 'p', 'Q', 4737, 7971, 7923, 6439, 'Z', 'r', 'g', 'e', 'p', 327, '1209', '3943', 'D', 'A', '9873', '5103', '6427', '3453', '8525', '7015', 'n', '3455', 'l', '7261', 'M', 'V', '9859', '549', '8873', '5291', 'Q', '6647', '8381', 'e', 'R', 'z', 6351, 6899, 'w', 4595, 3623, 'a', 8921, 8475, 'H', 'p', 6301, 'b', 6097], ['z', 'g', '1209', '3943', 'D', 'A', '9873', '5103', '6427', '3453', '8525', '7015', 'n', '3455', 'l', '7261', 'M', 'V', '9859', '549', '8873', '5291', 'Q', '6647', '8381', 'j', 2811, 1773, 7433, 7153, 8465, 1615]
A:
1209, 3943, D, A, 9873, 5103, 6427, 3453, 8525, 7015, n, 3455, l, 7261, M, V, 9859, 549, 8873, 5291, Q, 6647, 8381