Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['X', 25, 'j', 'M', 5349, 3527, '5033', 'W', 'm', 'V', '9879', '3903', 'P', 'N', '2353', '5187', '9313', '2581', '957', 'F', 'Z', 'C', '7029', 'g', 'F', 'K', 3681, 'j', 5027, 'p', 'f', 'l'], [4515, 'H', 'l', 'f', 3361, 9235, 5235, '5033', 'W', 'm', 'V', '9879', '3903', 'P', 'N', '2353', '5187', '9313', '2581', '957', 'F', 'Z', 'C', '7029', 'g', 'V', 's', 4957, 2627, 's', 9909, 5813]
Output:
5033, W, m, V, 9879, 3903, P, N, 2353, 5187, 9313, 2581, 957, F, Z, C, 7029, g