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', 'Z', 6777, 'I', 'M', 7283, 3395, 8447, 1895, 'Q', '1427', '7849', '7875', 't', 'C', 'b', '9469', 'J', '6495', '3819', '7565', '711', 'f', '309', '9815', '5399', '4971', 'Q', 'I', 'u', 8289, 't', 'U', 'A', 4903, 4739, 'U', 3475, 1827, 'D', 6255, 8663, 7533, 'f', 'a', 4631], ['m', 2071, 2407, 'y', 2795, 1413, 5101, 2747, 161, 'T', 'p', 'Q', '1427', '7849', '7875', 't', 'C', 'b', '9469', 'J', '6495', '3819', '7565', '711', 'f', '309', '9815', '5399', '4971', 'Q', 'E', 6951, 'v', 8035, 9161, 9955, 'C', 2635, 'y', 'B', 761, 'C', 3289, 'A', 6207, 3895, 3603]
A:
Q, 1427, 7849, 7875, t, C, b, 9469, J, 6495, 3819, 7565, 711, f, 309, 9815, 5399, 4971, Q