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', 'd', 'B', 'H', '3957', '4097', '4137', 'Z', '873', '243', '741', 'p', 'h', 'X', '3561', 'o', 'Z', 'i', 7685, 9915, 'n', 'Q'], [9985, 6069, 1255, 5287, 2823, 'k', 'M', 1797, 6871, '3957', '4097', '4137', 'Z', '873', '243', '741', 'p', 'h', 'X', '3561', 'l', 2067, 2913, 75, 3967]
A:
3957, 4097, 4137, Z, 873, 243, 741, p, h, X, 3561