In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 1841, 'R', 5165, 'i', '9347', 'E', 'D', 'y', 'a', 'L', 'K', '7567', 'Z', '531', '3', 'O', '4557', '183', 'n', '3847', 'T', 'Q', 8061, 'J', 'L', 3729, 'Q', 'p', 'C', 'D', 'Q', 6907, 'n'], [6215, 'v', 8715, 5517, 'S', 459, 593, 6201, 'Z', 4303, 3049, 'i', '9347', 'E', 'D', 'y', 'a', 'L', 'K', '7567', 'Z', '531', '3', 'O', '4557', '183', 'n', '3847', 'z', 2271, 5089, 'G', 'z', 3291, 'd', 8415, 'R', 's', 5637, 6177, 9001, 'n', 'i', 9613, 'E']