In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['N', 5803, 'h', 'N', 8309, 1489, 'L', 845, 'f', 'M', 'u', 'T', 'G', 'm', '3029', 'N', '3227', 'Z', '8431', 'n', 'k', 3213, 4929, 3695, 405, 'Z', 'L', 6713, 'D', 1561, 3105], [167, 3129, 'M', 'u', 'T', 'G', 'm', '3029', 'N', '3227', 'Z', '8431', 'n', 'E', 1145, 1467, 5809, 'G', 'P', 7099, 7771, 'g', 7235]