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: [5809, 7197, 8693, 'x', 347, 'S', 7413, 497, 'e', 'z', 4857, 'P', 'D', '3729', '5169', '1191', '3979', 'k', '8543', '7821', '3681', '8145', '6603', 'n', 'e', 'G', 'L', 'I', '9471', 'a', '2271', 'I', 2047], ['M', 'P', 4455, 3289, 1227, 9237, 'f', 7689, 3199, 1491, 's', 8985, 'h', 'e', 'e', 3591, 'D', '3729', '5169', '1191', '3979', 'k', '8543', '7821', '3681', '8145', '6603', 'n', 'e', 'G', 'L', 'I', '9471', 'a', '2271', 'J', 5707, 'E', 9939]
A:
D, 3729, 5169, 1191, 3979, k, 8543, 7821, 3681, 8145, 6603, n, e, G, L, I, 9471, a, 2271