In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 2529, '6317', '4359', 'L', 'g', 'h', '1085', '5137', 'V', 'g', '3977', 'Y', '1435', '9873', 'w', 'g', 'C', '9365', '4133', '7511', 'A', 'A', 'j', 'A', '6179', 'N', '7967', '1235', '1059', 'V', 'n', 607, 7905, 'S', 4553, 4575, 'w', 7247, 'R', 1555, 'a', 'G', 'k'], [8057, 4397, 'S', '6317', '4359', 'L', 'g', 'h', '1085', '5137', 'V', 'g', '3977', 'Y', '1435', '9873', 'w', 'g', 'C', '9365', '4133', '7511', 'A', 'A', 'j', 'A', '6179', 'N', '7967', '1235', '1059', 'V', 'E', 3309, 3451, 6997, 'U', 'o', 'h', 'C', 'y', 'o', 'h', 'e', 7373, 'M', 't', 'A', 4421, 5465, 9791, 1499, 'U', 'x', 1345]