In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['e', 9639, 'h', 4807, 'Z', 1785, 'o', 'i', 'c', 'k', 'J', '5161', 'M', '6805', '8097', 'J', '5349', '285', 'X', '283', 'C', '8901', 'u', 9897, 4067, 'R', 'I', 'm', 9475, 6877, 'u', 'f', 8309], [5947, 2767, 'i', 'c', 'k', 'J', '5161', 'M', '6805', '8097', 'J', '5349', '285', 'X', '283', 'C', '8901', 'x', 'c', 4843, 'i', 5391]