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: ['C', 6385, 'P', 'Q', 'R', 'j', 'A', '8303', '9795', '5121', '8429', 'Y', '3503', '6149', '7725', 'G', '7965', 'u', '6133', '877', 'W', 'w', 'H', '7897', '7253', 'o', 'b', 'Q', 4885, 1307, 'f', 'J', 9821, 1769, 'M', 'A', 5751, 3357, 29, 'Z', 'v', 'Y'], [6325, 'p', 'V', 9157, 'o', 'f', 'y', 'A', '8303', '9795', '5121', '8429', 'Y', '3503', '6149', '7725', 'G', '7965', 'u', '6133', '877', 'W', 'w', 'H', '7897', '7253', 'u', 4413, 8985, 9899, 3583]
A:
A, 8303, 9795, 5121, 8429, Y, 3503, 6149, 7725, G, 7965, u, 6133, 877, W, w, H, 7897, 7253