In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 'f', 4109, 'H', 9323, 'u', 'F', 'a', 'G', '5795', '3669', '2869', '4929', 'w', 'S', '2367', 'Z', 'c', '2571', '509', 'H', 'L', 'h', 'N', 'M', 'f', 7281, 3779, 'Z'], [4657, 'a', 'a', 'G', '5795', '3669', '2869', '4929', 'w', 'S', '2367', 'Z', 'c', '2571', '509', 'H', 'o', 'P', 'L', 'h', 'I', 7327, 6677, 'K']