In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
[7985, 4715, 5179, 1521, 'L', 3997, 2029, 2965, 'c', 'N', 379, 2133, 905, 'c', 'J', 6681, 9929, 'T', 'j', 'n', 'D', '1795', 't', 'n', 'I', 'B', 'J', '1219', 'z', '1341', 'F', 'W', 'E', '7191', '7277', '2387', '1755', '2245', 'L', 'M', 5113, 'S', 'N', 3341, 'Q', 3489, 'r', 'N', 'm', 'D', 4415, 'F', 913, 'l', 3843, 'K'], [5261, 7877, 'n', 'n', 'D', '1795', 't', 'n', 'I', 'B', 'J', '1219', 'z', '1341', 'F', 'W', 'E', '7191', '7277', '2387', '1755', '2245', 'L', 'F', 437, 'J', 8023]