In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['P', 'p', 'n', 3229, 'K', '6473', 'N', '9959', 'x', '399', 'L', 'w', '755', '1129', '7453', 'J', '6775', '4721', '1791', 'E', 'K', 5731, 'P', 3331, 'B', 6183, 'x', 8593, 3813, 5463, 6405, 6621], ['m', 'y', 1773, 5839, 'c', 'R', 'G', 'g', 'h', 'v', 'K', '6473', 'N', '9959', 'x', '399', 'L', 'w', '755', '1129', '7453', 'J', '6775', '4721', '1791', 'Z', 'w', 461]