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: [9343, 'K', 'G', 255, 4541, '5801', 'B', 't', 'X', '5943', 'G', '767', '8527', 'K', '669', 'z', 'j', 'v', '1415', '2745', 'D', 'T', '9601', '9779', 'W', 'C', '2115', '7233', 'o', '6713', 'O', 'm', 'f', 'z', 'i', 't'], ['D', 't', 'Q', 'j', 'Q', 'p', 7449, 'F', 'P', 4707, 1057, 2323, 'G', 6677, 'M', 'f', 'V', 9623, 9321, 'U', 'm', 2423, 4151, 6649, 'h', 'y', 'X', '5801', 'B', 't', 'X', '5943', 'G', '767', '8527', 'K', '669', 'z', 'j', 'v', '1415', '2745', 'D', 'T', '9601', '9779', 'W', 'C', '2115', '7233', 'o', '6713', 'O', 'm', 'f', 'n', 3999]
A:
5801, B, t, X, 5943, G, 767, 8527, K, 669, z, j, v, 1415, 2745, D, T, 9601, 9779, W, C, 2115, 7233, o, 6713, O, m, f