In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
['w', 375, 535, 'S', 'U', 'J', 'G', 'e', '5525', '187', '7497', '2221', 'P', 641, 1159, 8681, 'H'], [8515, 8849, 6579, 1251, 'y', 'G', 'e', '5525', '187', '7497', '2221', 'Z', 'a']