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: ['S', 'A', 'b', 'z', 'z', 8153, 'E', 'q', 7553, 7025, 'h', 9781, 'a', 'M', 5617, 'm', '2673', 'X', 'L', '8859', '3933', '6909', '6617', 'j', 'h', '1079', '161', '6741', 'h', '533', 'h', '4025', 'R', 'l', 'Q', 'v', 'P', '2507', 't', 'A', 'U', 'g', 6457, 'B', 'S', 8155, 5127, 'D', 'Q', 'O', 'z'], [3585, 8231, 'f', 1319, 'C', 1501, 8823, 'S', 'm', '2673', 'X', 'L', '8859', '3933', '6909', '6617', 'j', 'h', '1079', '161', '6741', 'h', '533', 'h', '4025', 'R', 'l', 'Q', 'v', 'P', '2507', 'H', 'h', 3651, 1259, 6457, 6105, 'M', 7807, 8885, 1003, 2345, 7671, 2047]
A:
m, 2673, X, L, 8859, 3933, 6909, 6617, j, h, 1079, 161, 6741, h, 533, h, 4025, R, l, Q, v, P, 2507