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: [6469, 'q', 737, 3633, '3641', '8603', '3629', 'i', '8925', '633', 'd', 'I', 'O', '257', '2299', 'X', '1489', 'Z', 9053], ['e', 'G', 'r', 9849, 1851, 1219, 'c', 6321, '3641', '8603', '3629', 'i', '8925', '633', 'd', 'I', 'O', '257', '2299', 'X', '1489', 'M', 'Z', 'w', 6975, 'g', 'y', 1047]
A:
3641, 8603, 3629, i, 8925, 633, d, I, O, 257, 2299, X, 1489