Part 1. Definition
In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Part 2. Example
[5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Answer: 8297, b
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'].
Part 3. Exercise
[8061, 'F', 'R', 'd', 'b', 8375, 1657, 9885, 'f', 2465, 587, 4871, 'm', 'h', 'F', '9227', 'j', '519', 'F', '2571', '5615', 'A', 'I', 'a', '5911', 'V', 'A', 'x', 'O', '5187', '5025', 'z', 't', 't', '3725', 't', 'w', 'Q', '9135', '4055', 'O', 'Z', '8277', '2923', 'G', 7589, 'x', 4327, 'c', 'j', 'c', 't', 4743, 'B', 6459, 'q', 5489], ['Z', 4535, 7457, 7169, 8391, 'x', 'J', 6467, 887, 'm', 'b', 'd', 'U', 6363, 5703, 'u', 3927, 'T', 4061, 6453, 'K', 6315, 'J', 'Q', 9437, 5531, 'b', 'e', 9453, 419, 'F', '9227', 'j', '519', 'F', '2571', '5615', 'A', 'I', 'a', '5911', 'V', 'A', 'x', 'O', '5187', '5025', 'z', 't', 't', '3725', 't', 'w', 'Q', '9135', '4055', 'O', 'Z', '8277', '2923', 't', 9155, 'G', 71, 'K', 'x', 1729, 'n', 8951, 'z', 7127, 8663, 6125, 'K', 'Y', 6471, 'l', 247, 3193, 'C', 'p', 831, 'e', 7685, 'B', 'm', 'j']
Answer:
F, 9227, j, 519, F, 2571, 5615, A, I, a, 5911, V, A, x, O, 5187, 5025, z, t, t, 3725, t, w, Q, 9135, 4055, O, Z, 8277, 2923