In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
One example is below.
Q: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
A: 8297, b
Rationale: 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: ['h', 6123, 4733, 7039, 'T', 'm', 'F', 301, 4959, 5367, 2655, 'v', 'J', '8343', 'i', 'o', 'I', 'b', 'W', '8413', '213', '147', 'X', 'b', 'd', '5727', '567', '7533', 'C', 'T', '2029', '955', 'h', '9525', 'h', '13', '9509', '6537', 'W', 'w', 5363, 'C', 7143, 7157, 'E', 'R', 3139, 717, 'T', 'C', 'o', 'W', 3129, 9357, 7873, 'k', 'j', 'X', 2041, 'f', 'w', 'k', 1223, 'w'], [587, 'u', 7857, 'A', 'g', 2663, 5285, 'E', 6089, 'o', 'u', 'X', 'J', 'P', 'j', 5651, 1021, 6575, 6667, '8343', 'i', 'o', 'I', 'b', 'W', '8413', '213', '147', 'X', 'b', 'd', '5727', '567', '7533', 'C', 'T', '2029', '955', 'h', '9525', 'h', '13', '9509', '6537', 'W', 'P', 6375, 'O', 'b', 'p', 4753, 6487]
A:
8343, i, o, I, b, W, 8413, 213, 147, X, b, d, 5727, 567, 7533, C, T, 2029, 955, h, 9525, h, 13, 9509, 6537, W