In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['E', 5057, 9871, 3213, 'h', '6769', '3585', '2261', 'E', 'f', '3611', 'h', '9187', 'T', '1127', '3157', 'L', 'p', '3695', 'Z', 'J', 'f', 4163, 1901, 9157, 4471, 'G', 2787, 'h', 185, 1147, 'w', 'g', 6577, 'S', 'd', 'm'], [2845, 'C', 219, 'p', 'x', 3647, 5449, 1217, 'b', 161, 4447, 1371, 'h', '6769', '3585', '2261', 'E', 'f', '3611', 'h', '9187', 'T', '1127', '3157', 'L', 'p', '3695', 'Z', 'J', 'J', 7015, 3407, 'V', 7111, 'o', 'B', 'g', 2351, 2393, 4321, 'J', 5937, 9361, 'W', 103, 2855]