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: [9911, 8883, 'f', 'j', 'a', 'j', 6581, 'c', '6161', '1381', '2303', 'N', 'F', 'p', '3185', 'C', '9563', '1901', 'w', '777', 'f', '6881', 'D', '267', 'j', 'a', 'b', 'c', 4577, 't', 669, 'D', 9469, 'B', 7301, 7663, 245, 1025, 'D', 9263, 'k'], ['X', 163, 'a', 1595, 'q', 6353, 'S', 7093, 2855, 5509, 7069, 5447, 'n', 'c', '6161', '1381', '2303', 'N', 'F', 'p', '3185', 'C', '9563', '1901', 'w', '777', 'f', '6881', 'D', '267', 'j', 'p', 1315, 'Q', 2793, 1211, 'X', 'i', 'U', 853, 8203, 6651, 6875]
A:
c, 6161, 1381, 2303, N, F, p, 3185, C, 9563, 1901, w, 777, f, 6881, D, 267, j