In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['S', 6803, 3817, 'F', 'Y', '9489', '1727', '3083', 'Q', 'H', 2767, 6571, 'h'], [1263, 6703, 7429, 881, 'Y', '9489', '1727', '3083', 'Q', 'I', 10001, 9025, 'a']