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: ['X', 9819, 3095, 'K', 'g', 2063, 2409, 4779, 'y', 3887, '6799', '8667', '1581', '1773', '425', 'p', 'r', '8771', 'K', '6217', '5209', '4295', 'j', 'e', '4799', 'n', '9549', 'x', 'N', '4367', 'N', 'l', '9909', '6961', 'h', 'V', 'E', 4667, 6109, 'g'], [1811, 2589, 6241, 9441, 2357, 8475, 1079, 8993, 'y', 'c', 2173, 5173, 'g', 'P', 'R', 4775, 8525, '6799', '8667', '1581', '1773', '425', 'p', 'r', '8771', 'K', '6217', '5209', '4295', 'j', 'e', '4799', 'n', '9549', 'x', 'N', '4367', 'N', 'l', '9909', '6961', 'P', 'W', 'O', 'i', 5685, 'F', 5795, 9717, 'l', 'E', 1717, 8501, 1477]
A:
6799, 8667, 1581, 1773, 425, p, r, 8771, K, 6217, 5209, 4295, j, e, 4799, n, 9549, x, N, 4367, N, l, 9909, 6961