In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.

Let me give you an example: [5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
The answer to this example can be: 8297, b
Here is why: 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'].

OK. solve this:
[8789, 3005, 'b', 4103, 745, 'i', 8695, 3019, '6861', 'c', '1379', '6609', '7859', 'N', 'D', '1783', '1561', 'U', '2167', '591', 'K', 'n', 'l', 'D', '9499', '4587', 'F', 'm', 'j', 'z', 5823, 5241], ['L', 'e', 3975, 'j', 3753, 4517, 'H', 'Q', 7463, 'q', '6861', 'c', '1379', '6609', '7859', 'N', 'D', '1783', '1561', 'U', '2167', '591', 'K', 'n', 'l', 'D', '9499', '4587', 'F', 'K', 'Y', 'E', 8103, 'o', 'j', 3985]
Answer:
6861, c, 1379, 6609, 7859, N, D, 1783, 1561, U, 2167, 591, K, n, l, D, 9499, 4587, F