Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['k', 3741, 847, 5239, 'h', 979, 2229, 'x', '127', '581', 'B', 'b', 'k', '9709', 'I', 'f', 'P', 9605, 'j', 'c'], [3295, 'a', 'v', 4189, 5991, 1967, 'U', 'x', '127', '581', 'B', 'b', 'k', '9709', 'I', 'm', 'u', 2891, 4043, 4873, 1095, 'a']
Output:
x, 127, 581, B, b, k, 9709, I