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: [4691, 'U', 9071, 3563, 8895, 1123, 'Z', 'a', 'w', 'K', 'W', '3731', 'f', 'L', '2841', 'G', '7045', '1975', '5183', 'Q', 'o', 'L', 7421, 7625], [7037, 'n', 5543, 5217, 2043, 'Z', 'a', 'w', 'K', 'W', '3731', 'f', 'L', '2841', 'G', '7045', '1975', '5183', 'Q', 'Q', 3177, 'l']
A:
Z, a, w, K, W, 3731, f, L, 2841, G, 7045, 1975, 5183, Q